correct installation for enabling SSH2 in PHP is below for PHP7.4 and on word
sudo apt-get install php7.4-ssh2
this command will eject /etc/php/7.4/mods-available/ssh2.ini in given PHP
as shown below
This is the only source I could get to worm for Debian bookworm if it's useful to anyone:
deb http://downloads.linux.hpe.com/SDR/repo/mcp/debian/ bookworm/12.80 non-free non-free-firmware
Key import ...