Flux query to list contents of a field to be used for a variable

last question on this.

Can I use a variable in the regex field?
If so, how as I am unable to find any working examples