Ignoring the Intellisense error and compiling once fixed the issue; not sure why, but my guess is that Intellisense subsequently picks it up in the Intermediate folder after compiling. I used Setting Up VS Code for Unreal Engine with:
“includePath”: [
“${workspaceFolder}\Intermediate\",
"${workspaceFolder}\Plugins\”,
“${workspaceFolder}\Source\**”
],
added to the .vscode/c_cpp_properties.json file.
Probably why the @QuentinEdel solution worked, but compiling twice was not required (skipped the compile without the semi-colon.)