If I may suggest, there is another way to remove OneDrive, and it can also remove Edge, Teams, Copilot, Recall, or any unwanted bloat from Microsoft. This is a permanent solution and it doesn't even require to fiddle with the registry editor.
This ultimate Windows debloat utility comes in the form of a free and open-source operating system called GNU/Linux. Learn more at https://www.debian.org/ and https://fedoraproject.org/
Jokes aside, thanks for your service for those that can't or won't use an operating system that respects their choices.