If they really wanted to, they could completely kick Meta and Google out of the country. They won't do that, however, because it will be deeply unpopular with the electorate.
They can do a lot in-between, however. They can, for example, halt all payments from resident accounts to Meta/Google