Have reviewed your install. There's no way this worked before. The REGEXP in several usages isn't valid. The only way it could have worked before is if your server was ignoring the errors and just continuing forward. I've edited and fixed your substitution usage to fix the broken REGEXP and it's working fine now.
Please understand literal strings with anything but alphanumeric values must be REGEXP escaped. For example () usage is a capture group in REGEXP. They need to be escaped as \(\) to do a literal string match. The same applies to your delimiter, which is / so if you need a literal / it should be escaped as \/. If you're unsure how REGEXP works I recommend the below site.
www.regular-expressions.info/