If your doctor prescribed it I'm sure the benefits outweigh the risks. But you should contact him considering your having these other problems. Good luck hun hope you feel better soon.
Cephalexin is pregnancy category b, (on a scale of a, b, c, d, and x). A And b are safe to use in pregnancy, never x. I am a pharmacist btw.