You can install airgap for this. In usa building code mandates it on multiple states
The airgap causes the pump to be physically incapable of backfeeding the drinking water supply with dishwasher waste
my wife once decided to dump into garbage disposal a bunch of uncooked broccoli at once. it clogged garbage disposal and drain. when i tried to unclog it with plunger it backed into dishwasher (was hooked directly to garbage disposal bypassing airgap). took me hour to get everything out of dishwasher.