\ban ASCII word boundary
functionthe literal text function (case insensitive) *repeats the group contents below any number of times:
Negative Lookahead(?!function) functionthe literal text function (case insensitive) .any character (except for line terminators)
\(the literal ( (4010 / 508 / 2816)
.*?any character (except for line terminators), repeated any number of times
\)the literal ) (4110 / 518 / 2916)
\s*any whitespace character, repeated any number of times
{the literal { (12310 / 1738 / 7B16)