I did that and it's still the same error message.
which certbot
Certbot doesn't seem to recognize that you have the dns-cloudflare plugin installed.
sudo certbot plugins
I highly recommend uninstalling ALL of your certbot packages and plugins (from snap too) and just starting clean (but leaving the /etc/letsencrypt directory) with this process:
sudo rm /etc/apt/preferences.d/nosnap.pref
sudo apt update
sudo apt install snapd
sudo snap install core
sudo snap refresh core
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
sudo snap set certbot trust-plugin-with-root=ok
sudo snap install certbot-dns-cloudflare
Fixed everything thank you

