Hi
I feel you. Our little girl had worms a few months back. The vermox was used to treat pinworm in our case and it did worm. But like mamas said there are other kinds.
Take lo to your dr and describe the worm - haha this one falls under one of the embarrassing topics!!!
Our little girl had none from the mouth only the other end.

If you're unsure of what you saw, ask paed give you a sterile container so that you can collect a stool sample and they can test it for you.
I took my little girl to the ER because it was ofcourse a sunday. He gave me 2 pills one on the day which we hastily all gulped down and one for about a week later or 2 weeks later. He said because quite often there are still eggs and then they hatch and viola, it starts all over again.
The monday I took her to her paed just to make sure and to calm my mommy nerves and she told me not to take the other one, as they are strong, but rather do a stool sample and then take it from there. Luckily stool sample - clear.
Hers were tiny white thread-like worms.
Change bedding and pjs daily and wash on high.
Hope this helps.