Fix another regex compile error

Backport of LUCENE-6054.

Change-Id: Ie49cbbfdbb0f4e6b28f6199441c0a0213f3db849