Pain during sex

Rylie
I have pain while having sex with my bf I went to the gynecologist and she said to take pro biotics for pH balance but it isn't working very well does anyone else have this issue? If so what are you doing to help ease the pain if anything?