Open text field with multiple values

I have query with open text field. That works well but only for single value.

sort_desc(max(container_memory_usage_bytes{kubernetes_node=~"$node",image!="",pod_name=~"static-$pod_name-.*"}) by (pod_name, image))

Where the $pod_name-.* is the open text field value. How can I improve that to be able to enter multiple values?