Error after updating PHP from 7.2 to 7.3

I have just update PHP from 7.2 to 7.3 and I cant run any EE command any longer, BUT my websites are all still running perfectly. I did it using:
sudo apt install php7.3

When I try to do ee site list, ee cli update, ee cli info I get:
Error: could not find driver

Some other commands work fine, like:
ee help
ee cli version which returns EE 4.0.14

Any clues, on how can I fix it?