I’m sure this is a very dissatisfying answer but this happened to me yesterday (didn’t stop my code from compiling though). I restarted VS Code this morning and these errors went away.
I’ll try to that so
Yes it’s not blocking the code still run But there is no way to check the source code though, which is quite annoying in the developing phase.