I think I've have had this problem always.
I'm running all the vscode windows in full screen mode. Mac (macOS 12.6.3) is set to change color scheme automatically.
I've enabled vscode configuration sync.
The color scheme can be corrected by toggling "auto detect color scheme enabled" checkbox on and off in the window
that has not changed color scheme to dark or light. But sometimes I need toggle "workspace" preference instead of "user"
preference.
For example right now I have 2 dark schemed windows (correct) and 1 light schemed mode (incorrect)
Here are the vscode details:
Version: 1.75.0
Commit: e2816fe
Date: 2023-02-01T15:24:42.903Z (1 wk ago)
Electron: 19.1.9
Chromium: 102.0.5005.194
Node.js: 16.14.2
V8: 10.2.154.23-electron.0
OS: Darwin x64 21.6.0
Sandboxed: No