Unreal engine 5.5.4 not working with Visual Studio 2022

Try the following steps:

After all, use this video as reference in way to add classes: https://www.youtube.com/watch?v=FBpnOuCgHu4

This may solve your issue, good luck.