Once your puppies have been dewormed with worm medicine it can take a day or two for the worms to start passing the worms through their poop.
Then the puppies may continue passing worms for up to 3 weeks after deworming.
It depends on how many worms the puppy has but I've had puppies continue to pass the worms in their poop for up to 3 weeks.
After around 3 weeks the worms should be fully gone from the puppy.
It's normal to see dead worms in your puppies poop within a few days or so of deworming the puppy.
If the puppy continues passing worms after 3 weeks then you might want to see the vet but sometimes it takes a bit longer than 3 weeks.
However usually within 2 to 3 weeks the worms should be gone.