Grafana prometheus variables don't work when including regex

I’m trying to filter out panel using variables(job), it works but to clean the resulten drop down menu I have included regex to narrow down the output menu and once I do that the panels don’t work anymore. It must be something in using the variables in the panel query but I’m not able to figure it out : This is my panel query working perfectly with variable (label_values(job)):
![Screen Shot 2022-03-23 at 12.36.40 PM|690x213]
and once I add the following regex :
(upload://wcIWOlHIwxrXNYgZMM2q6ZNYB00.png)


my values disappear although the job name on the panel is the one that contains the regex

Screen Shot 2022-03-23 at 12.46.19 PM

do you think you could try and replicate this on our public sandbox, https://play.grafana.org? :pray:

here is a templated prometheus dashboard using query-based variables and regex:

https://play.grafana.org/d/000000029/prometheus-demo-dashboard?orgId=1&refresh=5m