Anxiety meds and ttc

Annie • Married 5 years & counting. Mama to a sweet boy and many 🌈's, baby #2 was a rough miscarriage as it was 7w6ds in and we had just days before seen our babes heartbeat
Has anyone had to take xanex or antibiotics while ttc and found out later they were pregnant?  Any risks or complications due to this?