Mautic-5 Problem Uninstalling 3rd Party Plugin

My Mautic version is: 5.1.0
My PHP version is: 8.1.29
My Database type and version is: 10.6.18-MariaDB

I am having issues with removing/uninstalling a plugin (KonstantinCodes/mautic-recaptcha). I installed it to test if it worked on Mautic5, but did not see the plugin available. I deleted the plugin folder, and reran the clear cache. I tried installing a version that was modified for version 5, but I get the following error when clearing cache:

In MauticRecaptchaBundle.php line 16:
Compile Error: Cannot declare class MauticPlugin\MauticRecaptchaBundle\MauticRecaptchaBundle, because the name is already in use

The only log messages relative to the issues were found in plugins/error_log:
[16-Sep-2024 18:44:38 UTC] PHP Fatal error: Cannot declare class MauticPlugin\MauticRecaptchaBundle\MauticRecaptchaBundle, because the name is already in use in /home/hysmor5/public_html/mkt/plugins/MauticRecaptcha/MauticRecaptchaBundle.php on line 16
[16-Sep-2024 19:03:19 UTC] PHP Fatal error: Cannot declare class MauticPlugin\MauticRecaptchaBundle\MauticRecaptchaBundle, because the name is already in use in /home/hysmor5/public_html/mkt/plugins/Mautic5Recaptcha/MauticRecaptchaBundle.php on line 16
[16-Sep-2024 19:29:11 UTC] PHP Fatal error: Cannot declare class MauticPlugin\MauticRecaptchaBundle\MauticRecaptchaBundle, because the name is already in use in /home/hysmor5/public_html/mkt/plugins/mautic5recaptcha/MauticRecaptchaBundle.php on line 16

Steps I have tried to fix the problem:
Remove the plugin directory, then clear cache (using php …/bin/console cache:clear --env=prod) and then install a new version of plugin, but with the same name.

try clearing the cache the hard way (rf -rf var/cache/prod/*)