Hello, I would suggest taking a stool sample into your vet right away if the numbers were that intense. The worms themselves may not have been red but could be turning red due to the loss of blood from your baby. I am not familiar with any worms that are red in color when they come out in your dogs stool. Most worms that are visible to the naked eye in your dogs stool are white in color. You could be seeing segments of a tape worm in the stool that turned red due to the amount of blood that may be getting passed with the stool. I would suggest having a stool sample taken to your vet and have them test so that they can prescribe the most effective deworming medication to get your baby healthy again. The worms could be at this point making your dog anemic if there are in that type of concentration in the stool. Getting him wormed and looked at as soon as possible will be in your best interest for you and your baby. Please let me know if you need anything else. Here is a link as well to information on the common parasites in dogs.