@zvavybir @JordiGH https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Mathematics/MathFormattingBugs for many many more problems with the recently-changed Wikimedia mathematics rendering pipeline.
And no, the color thing cannot be solved by editing the equation (except maybe by forgoing the use of color altogether) because you only get one choice of color per symbol so if it is a dark color that works in light mode it will not be a light color that works in dark mode.