I have mbstring enabled in php.ini ("php -m" in CMD shows mbstring in the list), but I'm still getting this error.
Requirements page for mPDF says that it should include mbregex as well. I don't know, maybe it's missing. How can I install it? Or it is not the problem?
My PHP version is 7.4.19.
UPDATE: I'm using MAMP as my local server. phpInfo says current configuration has both mbstring and mbregex.