The default ECMAScript syntax appears to be broken on CentOS 7 which effectively prevents its use in most cases. A more reliable alternative would be to use the bundled PCRE2 library but the basic POSIX regular expressions seem to work.