cause of the issue in my case --no-dev :
php7.4 /usr/local/bin/composer2 dump-autoload --no-dev --optimize
after running php7.4 /usr/local/bin/composer2 dump-autoload --optimize
disable/enable module was working