Fix regex for function names