So according to this stackoverflow answer:
Are the PHP preg_functions multibyte safe?
whether or not the preg_* functions support multibyte characters out of the box is dependent on what version of PCRE php was compiled with. On a linux web server, is there a command or bit of PHP code I can run to determine if the PCRE version is >= 8?