Hmm, maybe it was the wrong package… so reinstall it
apt install docker-compose-plugin
I’m running Rocky 8, so I’m not sure which package is the old docker-compose standalone version on Ubunutu.
You can try to install apt-file
apt install apt-file -y
apt-file update
And then check which package the binary belongs to
apt-file search /usr/local/bin/docker-compose