Incorrect text hightlighting in Juno

I seems to have incorrect text highlighting in Juno. Can someone confirm this is happenning on their Juno as well.

str = "   hello world   "
newstr = replace(str,r"^\s+" => s"")
newstr = replace(newstr,r"\s+$" => s"")

Picture of incorrect hightlighting

I’m on MacOS with (I believe) the latest Juno

Edit: I take that back, after updating I have the same problem as you do. Probably worth opening an issue?

These are my setting on Juno