Update regex to proper match a function name.

The previous regex could match strings that were not
actually a function.