πΊπ¦Ukraine MatweyK
Faced the same error with non-docker setup, non multi-siting.
My Drupal core version: 10.2.2
Drush version: 12.4.3.0
Composer version: 2.7.1
AWS ELB
Setting "COMPOSER_ALLOW_SUPERUSER=1" env variable fixed the issue as well in my case.
another option is to downgrade composer to 2.6.6.
Seems the root cause coming from composer 2.7.0 upgrade
Plugins not being loaded -> https://github.com/composer/composer/issues/11839