Fix regex for namespaces in function calls