When running composer diagnose, I get the following error :
composer diagnose
The xdebug extension is loaded, this can slow down Composer a little. Disablin
You can disable Xdebug setting an environment variable:
XDEBUG_MODE=off composer install
It's available using XDebug 3.