Cannot create C++ projects on Mac.

Hello, I am having problems with creating a new C++ project on my MacBook on UE 5.2. It gives me the error in the picture. This problem started after I tried changing the Source Code from XCode to VSCode.

I have tried uninstalling and reinstalling completely, but the issue doesn’t go away. It doesn’t let me open existing projects either, that error is in the second image.

Please help!