Optrex Infected Eyes contains an antibiotic (chloramphenicol).
Chloramphenicol should not be given to a pregnant dog:
http://www.diamondbackdrugs.com/chloramphenicol-medication-for-pets/ I would try bathing with salt water regularly and if that doesn't work in 24hrs, see your vet for a med you can safely use during pregnancy. Note that vets are not used to dealing with pregnant dogs, let alone pregnant dogs with eye infections, so I would double-check whatever is given is safe for your dog in pregnancy via trusty google. Which has its uses.