It is not recommended to deworm a female dog while she is nursing puppies. Some medications can pass through milk and harm the puppies, and side effects like vomiting may stress the mother and affect milk production.
Instead, focus on deworming the puppies starting at 2-3 weeks of age under veterinary guidance. The mother should maintain her regular deworming schedule as advised by your vet.
Always consult a veterinarian to manage the health of both the mother and her litter safely.