However, placing the cursor on either does highlight the second.
I'm using the Darcula scheme. Your screenshot obscures the second occurrence, so we cannot see if your light theme has the same issue with the second occurrence not being highlighted as Darcula has.
Screenshot: https://i.imgur.com/FxwUkVz.png