Hello this problem occurs cause of include problems.
U should find c_cpp_properties.json file. u can ctrl + shift +p in Visual Studio Code, then search C/C++ : Edit Configurations (JSON)
Then add "${workspaceFolder}/libopencm3/include" this in the "includePath" array. I will attach a image for you.