Source: mksh Version: 59c-39 mksh still has pcregrep in its autopkgtest debian/tests/control file but pcregrep is not in Debian any more (it was part of the obsolete pcre3).
pcregrep has been ported to pcre2grep which is packaged in pcre2-utils. But I don't know how compatible it is with what mksh was trying to do. Thank you, Jeremy Bícha