It’s StmPtr.Get().
The TSoftObjectPtr is an object that points to your static mesh. Using → accesses your mesh, using a period accesses the pointer itself, which you want, since it’s the pointer that has the Get function.
I just checked your code, apparently that way of constructing a TSoftObjectPtr isn’t valid in the first place and the compiler thinks ithe StmPtr(FSoftObjectPath(String)) is a function call instead of a constructor of an object.
Generally, it seems like you need one or the other (TSoftObjectPtr or FSoftObjectPath), not both. Either use TSoftObjectPtr<UStaticMesh> StmPtr = Mesh; or FSSoftObjectPath(Filepath).