It started to happen with Windows 11 in my notebook.
But seems it might not be OneDrive - causing this, for the following reasons/facts/test results:
- all the documents/etc were in OneDrive before the upgrade as well, with no such "misbehavior" when it was Windows 10
- I've connected through a CitrixDesktop to a host that's "Windows Server 2019" - and did F2 to rename the same document - no such misbehavior
It rather seems like someone in the Windows 11 team in the MS "decided" that it should be default "new feature" and by this feature MS platform will be ahead of other OS vendors and people using MAC/Linux will start to move to Windows platform.
And plus some other "new features" like "non-modifiable taskbar location", Start Menu (unless you want to dig out some JSON scripts and modify them/etc