New UE5 c++ project cannot find header files and open source file in visual studio 2019

Sadly, this does not work for me, because I cannot open my project in the editor. It keeps saying that I have to rebuild it, but that obviously will not work because of this issue.
I have tried all the usual “fixes”, however nothing works.

I am using UE 5.6 and visual studio 2022.

It does not matter what project I choose (new or existing), nothing works.
Thanks for any help.

Edit:
It seems that the include directory paths are not added to the project config!