uti 5 weeks pregnant

they have me taking keflex 4 times a day... does 4 sound about right to y’all?? you would think that’s a little too much especially being only 5 weeks pregnant.