How to use a variable in a query Elasticsearch with RegEx?

Hello, i’m trying to use a variable in a query ES with RegEx and it doesnt work.

Anyone does known an issue ?

My query

(tags_resource_id: “EFACJ70J.JOBTOPTO”) AND (tags_irt: $IRT) AND (tags_object_name:/$JOB.*/)

Variable $JOB is a text box.

What’s the error ???

Does anybody known ? I’m trying this but it’s don’t work anymore.

(tags_resource_id: “EFACJ70J.JOBTOPTO”) AND (tags_irt: IRT) AND (tags_object_name:{JOB:regex})

Does anybody known ?