Vscode header issue on UE5 M1 Mac

I just started using UE5 on an M1 Macbook Pro and tried using visual studio code as the external editor. I used Tools > Refresh visual studio code project, then Tools > open visual studio code but after I create a new actor (MyActor) I get the following include errors in both MyActor.cpp and MyActor.h:

#include errors detected. Consider updating your compile_commands.json or includePath. Squiggles are disabled for this translation unit (/Users/billgan/unreal/clionment43/Source/clionment43/MyActor.cpp).C/C++(1696)

cannot open source file "UBT_COMPILED_PLATFORM/UBT_COMPILED_PLATFORMPlatformCompilerPreSetup.h" (dependency of "CoreMinimal.h")

How do I fix this?

Did you ever fix this? It’s driving me nuts.