Got uti while ttc

As the headline says!! What are some medicines I can use that wouldn't hurt my chances for getting pregnant, or hurt the possible egg and sperm(currently in 2WW- so idk if I'm pregnant or not). Please help!! I get these uti's so often and now idk what medicine I can take or not.