Pin worms

Has anyone had anus thread like worms while pregnant and took Reese’s pinworm medicine? How do they treat this if pregnant