Has anyone took keflex

I got an infection in my foot some how and it made my whole foot swell up really bad. They gave me keflex antibiotic to get rid of the infection. I've read a lot about keflex because I'm the type that didn't want to take anything while I was pregnant. No Tylenol or anything. I read that if you get a uti while pregnant this is what they give you. I was just wondering if anyone else took this before and the baby ended up being fine. I just have taking something while I'm pregnant but I guess it's better than an infection getting to him.