Regex detection would incorrectly classify a trailing ! operator
(nullability cast) followed by a / as the start of a regular
expression literal. This fixes code such as:
var foo = x()! / 10;
Which would previously parse a regexp all the way to the end of the
source file (or next /).