pain during sex

Dervi

i have been taking capsules for vaginal infection with my doctors prescription to prevent early labour. it has been 3 months on and off ovuls . since then whenever i have sex it hurts. so my husband and aren't doing a thing at the moment . the infection isnt that heavy.i have been thinking maybe it is bcs of the meds. does anyone have an experience like this?