Yesterday I was installing a new machine and wanted to add EPEL (as Oracle Linux is a fork of RHEL).
dnf install epel-release
Is the command you'd use on a truly RHEL Linux to add said repository. In the past, that used to work (but I don't write notes when I install a new machine, so it could be that I had forgotten). This will install Oracle's version of EPEL, which doesn't contain the same packages that EPEL does.
In order to use proper EPEL you need to use :
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
Discovered the hard way, as I had a dependency in EPEL.