Have you solved the issue?
I am not sure what is causing that, you can try to refresh the Visual Studio Code (on the Unreal Engine interface tool→refresh Visual Studio 2022…).
Otherwise, try to check the steps in this tutorial:
I hope this helps, good luck