From my quick research, the pregnancy and lactation trigger worm eggs that may have been dormant, and are now passed to the kittens through her milk. It's okay to treat her while lactating. And ask the vet about treating the kittens too, because she can get reinfected by them (butt licking) and they won't get better without treatment.