Temporary folders being created that can't be deleted after editing from remote login.
This is a new problem for me since upgrading to Monterey, though it's basically a similar problem to one posted 5 years ago: File sharing - temporary empty folder are… - Apple Community - no real solution was provided then.
In my case I upgraded an iMac to Monterey from Mojave. I occasionally log in to my Account on the iMac from another computer on the local network (running Catalina) to edit files using Pages and Numbers. Once I save the edited file a temporary folder is created. It has the form name.pages.sb-adfdcf59-hztC6N. It cannot be deleted (The operation can’t be completed because you don’t have permission to access some of the items) even though I have read & write permissions on the file. It looks like the creation of the temporary folder is normal - I can see it being created when I replicate this process on two other computers not running Monterey - but in that case the folder is quickly deleted.
I'm having other issues with editing the files with a remote login from a different computer that predate Monterey, but I thought I'd deal with one issue at a time, especially since this seems to be a uniquely Monterey problem.
iMac