The only worm known officially in western medicine to be able to infect gums tongue and mouth area is the gongylonema.
i never had gums or teeth problems for decades. until last year started having constant bleeding gums.
about 2 months back found out i have tania solium infestation. long mudde... resistant to anthelminthics. still treating it. the thing is, t solium is not known to be able to infect the mouth and gums. although i m pretty sure it's the same species.
medical knowledge on helminth s stopped advancing since mid 20th century as focus shifted to more lucrative areas. money for research tend to go to chronic diseases which translate to repeat sales for pharmaceutical companies.
helminths in the mean time have not stopped evolving, especially in farms where live stock are expose to anthelminthic drugs.
doctors only read a chapter on average on worms, written decades ago. I suspect many of us on this site are actually more knowledgeable than 90% of doctors on the subject