So you updated the OS, but did not update the Foreman packages?
The latest version of ansible-collection-theforeman-foreman
is 3.10.0-1 and a fix for the issue you’re seeing was published in 3.9.0-2 (explanation what happened can be found here: Foreman callback reports that requests is not installed after CentOS 8 Stream latest update).