There are many causes of pain during intercourse. That's really beyond my expertise. However, yeast infections cause rashes and discharges, not just pain. I think you need to ask your gynecologist either for an opinion or a referral to look into this. Meantime, I suggest lubrication during intercourse.
Best.
Dr. Rockoff
vulvodynia can cause the pain you explain
good luck