How to match alert labels with case insensitive value

I’m looking for solutions to these 2 uses cases:

  1. On Alert Rules page search by a label but using a case insensitive value

  1. On Alert List panel filter by a label but using a case insensitive value

At the moment I don’t see a way to pass the i flag to new RegExp (grafana/alertmanager.ts at bb798e24f3c37540b6624c26e173d9357d641539 · grafana/grafana · GitHub)

Is there any way to achieve case insensitive filtering in these cases?