Fix regex syntax error test

We changed the wording on the syntax error in the message but not in the
test.

Change-Id: I4cd04ff8669e676c5eff9bc61898a91a74d8df6c
Merge "Fix regex syntax error test"