Fixed regex for functions with space before function brackets