How to use regexp in @filter

You might have some nodes without a name attribute, thus making it faster filtering name first.
What result do you get for the following query?

{
    nameCount(func: has(name)){
        count(uid)
    }
    
    keyCount(func: has(workspace_key)){
        count(uid)
    }
}