An error occurred while trying to generate project files for Visual Studio Code. How can this be fixed?

ERROR: Unhandled exception: System.UnauthorizedAccessException: Access to the path 'C:\Program Files\Epic Games\UE_5.0\.vscode\compileCommands_CubeCollector.json' is denied

This error happens while trying to generate project files for VS Code on Windows as the title says. The process of generating project files is automatically started while creating a project meaning I cannot create a project. I have followed this page to setup visual studio for Unreal Engine, and everything worked fined on my Linux, but I get this error on Windows. After a little googling it feels like I’m the first person on earth ever getting this error, which I highly doubt. Is that a known issue, or is there a known fix?
Engine version is 5.0.1, Windows is Windows 10.