pregnant? reaction to medicine? help!

hi ladies!

i’m feeling really confused and at a loss right now. so, here’s the story. i had a uti the past couple of weeks. i caught it pretty early and went to the doctor to get some antibiotics. the doctor ran a urine sample and told me i did in fact have a uti and even ran a pregnancy test, obviously it was negative. the antibiotic he prescribed me first was bactrim. i felt better for a couple of days but not all my feelings had subsided so i called back and he prescribed me a new medication yesterday called macrobid. i have only taken two of the pills so far but ever since i have felt extremely nauseated, had a headache, i feel like my heart is racing and i am still peeing quite often. i don’t know if i could possibly be pregnant now because i have had sex in the past few weeks. every time we did use a condom but there can obviously be mistakes where it would tear etc. any opinions? what do you think? what should i do?