[MacOS] Pasting in Dark Mode is stripped of colors

MacOS Monterey
Anki 2.1.54
I have “Paste without shift key strips formatting” unchecked.

During card editing, when I paste from Intellij Idea (with colored text) to Anki, all colors are stripped, yet formatting is retained.

This only happens in the Dark Mode of Anki. If I switch to Light Mode, both the colors and formatting are retained.

If I create the card in Light Mode and view the card in Dark Mode, it also works fine.

Added to Text color not preserved when pasting in dark mode · Issue #2055 · ankitects/anki · GitHub