We don't fix the bug itself, we just make regex functions display errors returned from pcre_exec() as MariaDB warnings.