I have managed to solve this, thanks to the help at https://github.com/microsoft/vc-ue-extensions/blob/main/README.md#optional-enabling-the-plugin
What is required is to go to Edit-> plugins, on Unreal Editor, an Enable the “new” plugin below:
Now the VS code says:
Command finished with exit code 0.
Analyzing Blueprints - Success.