IN vs code the double quotes and single quotes are being flags as errors why?

It may be that your language is not recognizing the fancy quotes as allowable string delimiters and so the red underlining under the strings mat be fixed by changing those fancy quotes to normal quotes.

As of vscode v1.63: Just to know what those orange borders around the quote marks are, the fancy quotes are unexpected unicode characters. Those orange borders are warnings that there are unexpected or ambiguous unicode characters.

If you add those fancy quote characters to this setting:

Editor > Unicode Highlight: Allowed Characters

Just copy and paste your varioucs characters, like into the Add Item input.

Or you can disable this setting:

Editor > Unicode Highlight: Non Basic ASCII

and those warning borders will go away.

Unicode Highlighting of certain features was added to vscode recently.