MySQL & MariaDB error 4007 ER_REGEX_NUMBER_TOO_BIG
Same number, two different errors. 4007 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLDecimal number in regular expression is too large.
MariaDBReference to recursive WITH table '…' in materialized derived