Inflluxdb query with regex only works in text edit mode

Hi
I’m trying to use a regex within an Influxdb query.
It works in text edit mode:
SELECT "hum" FROM "sensor" WHERE ("name" =~/misensor./) AND $timeFilter GROUP BY "name"

But I can’t get the same in the “wizard” mode (sorry, not sure of the right name)
If I enter it in text edit mode and switch back to the other mode, it get jammed:
image
And if I get back to text edit I get:
SELECT "hum" FROM "sensor" WHERE ("name" = '~\'misensor.\'') AND $timeFilter GROUP BY "name"

Is it only possible to enter query with regex in text edit mode ?

Thanks
Jean-Michel