Oddly, there are pcre2 packages in RedHat/Alma 9, but they do not include a pcre2grep.
GNU grep is also linked to pcre, not pcre2.
# pcre2grep
bash: pcre2grep: command not found...
# yum install pcre2grep
Last metadata expiration check: 1:58:58 ago on Tue 13 Dec 2022 11:45:44 AM CST.
No match for argument: pcre2grep
Error: Unable to find a match: pcre2grep
# yum whatprovides pcre2grep
Last metadata expiration check: 2:09:25 ago on Tue 13 Dec 2022 11:45:44 AM CST.
Error: No matches found.
# rpm -qa | grep pcre2 | sort
pcre2-10.40-2.0.2.el9.x86_64
pcre2-syntax-10.40-2.0.2.el9.noarch
pcre2-utf32-10.40-2.0.2.el9.x86_64
# which grep
/usr/bin/grep
# ldd /usr/bin/grep | grep pcre
libpcre.so.1 => /lib64/libpcre.so.1 (0x00007efc473c4000)
GNU grep is also linked to pcre, not pcre2.