Query variables

Dear Grafana Community!
From an ES datasource I get the variable (with multi-selection enabled):

“names”: Will, John, Peter, …

Now, using this first variable I want to query to a different datasource:

“names_all”: Will, Will_Test, John, John_Dev, …

If I use [1] I only get the values that exactly match the name (it does something like data.name:/Will|John|Peter/). However, I would have to do data.name:/Will.*|John.*|Peter.*/

Do you know if it is possible? i.e. data.name:/${names.*:pipe}/

Thank you in advance!

[1]
{“find”: “terms”, “field”: “data.names_all”, “query”:“data.names_all:/${names:pipe}/”}