Modify global variable in grafana

Hi everyone,
I want to get the {__user.login} value using prometheus as data source. What is the correct metric to get the value? I would like to create a variable modifying the {__user.login} variable using regex field.
Is there any way to do this?