pcre2-config: 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/pcre2-config - from package: pcre2-devel

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