It's very difficult to treat internal parasite infections. I do not believe that benign material like peas or garlic is going to cut it. Think it this way, would the parasites be damaged or irritated by those benign food? We are talking about parasites here, not vampires.
To get rid of internal parasites, you would most likely use poison, just like the human application. It doesn't sound so good, does it?