pcre2grep: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/pcre2grep - from package: pcre2-tools

You may install the required package with command yum install {package}
Error in other languages:
pcre2grep: bevel nie gevind nie
pcre2grep: comandă negăsită
pcre2grep: comando não encontrado
pcre2grep: commande introuvable
pcre2grep: command not found
pcre2grep: käsku ei ole
pcre2grep: không tìm thấy lệnh
pcre2grep: komanda nerasta
pcre2grep: Kommando nicht gefunden.
pcre2grep: kommandot finns inte
pcre2grep: komut yok
pcre2grep: nie znaleziono polecenia
pcre2grep: níor aimsíodh an t-ordú
pcre2grep: no se encontró la orden
pcre2grep: no s'ha trobat l'ordre
pcre2grep: opdracht niet gevonden
pcre2grep: parancs nem található
pcre2grep: perintah tidak ditemukan
pcre2grep: príkaz nenájdený
pcre2grep: příkaz nenalezen
pcre2grep: команда не найдена
pcre2grep: командата не е открита
pcre2grep: 命令找不到
pcre2grep: コマンドが見つかりません