Indeed, in the new version 10.15.6 for Windows, the sidebar is dark and does not respond to the Light Mode preference in View.
In particular, it's very strange the sidebar has a different background now, compared to the notes.
Can this sidebar be turned light again?