A stupid (as in, not intelligent) analogy.
Bomb laws don’t stop bombers. You CAN buy hardware store ingredients and make a bomb. Most people don’t do such things.
The point of the bomb law is so when they get a tip and raid someone’s house and find a few bricks of C4 wrapped in nails with a clock attached, they have something to arrest him for rather than saying ‘we have to wait until you use this to hurt people’.
But that’s also because that bomb has very few legitimate uses. There aren’t neighborhood bomb ranges where people go to compete and practice. You can’t use a bomb to hunt or protect yourself from 4-legged predators when in the woods. There aren’t bombing tournaments. You can’t use a bomb in self-defense or to protect your home or family. There ARE legitimate uses for bombs in mining, agriculture, industry, etc but those are uncommon and thus highly regulated.
A gun has many legitimate uses, and tens or hundreds of millions of law-abiding Americans use guns legally every day. Neighborhood gun ranges host classes, practice sessions, and competitions / tournaments. Guns are used for hunting and defense from predators in the woods. A gun can defend your home and family from intruders. And a small concealed pistol can be used to defend against street crime.
The only way you can do this, is if the only service you use the provider for is storage. Encrypt the data before you send it to the provider and then they don’t know what they’re storing.
If they have to do any processing on it at all, then conceptually they need a plain text copy of it to feed into the CPU. And if they have that, there is nothing you can do to stop them from stealing it or using it.
There has been some research in this field, the concept is called homomorphic encryption. That is where you encrypt something in a way that allows a third party to manipulate the data without possessing a key. It is still very limited, and likely always will be due to the extreme difficulty of the question.