The majority of veterinarian-approved dewormers, or wormers, are safe to use on a nursing mama dog. Deworming her and her babies is the right thing to do, especially if she hasn't been getting or has missed monthly parasite prevention doses.
More useful articles on a similar topic 👇
Does dog milk have worms in?What worms are puppies born with?