Fix highlighting for substitutions using braces as delimiters.

The end regex was matching on the open brace in the lookahead.