Nevermind I figured it out using Chatgpt.
This is what it recommended and it solved it for me:
Confirm Nginx Plugin:
Ensure that the Certbot Nginx plugin is installed. This plugin is necessary to automatically configure Nginx with Let's Encrypt certificates:
sudo yum install...