Virginity problems

So I have a question, I recently got something what I’m pretty sure is a yeast infection because there is itching,irritation,swelling and so on. My mom got me medicine to go down there but it only made it swell more. My mom keeps asking me if I’m sexually active and I say no because I don’t want to get in trouble and she keeps saying I rather u tell the truth even if it’s not what I want to hear. Should I tell my mom because I’m 17 going 18 and she said I wasn’t supposed to lose my virginity till I’m 21. I’m scared if I tell her I will punished for life and have to break up with my boyfriend because my mom is very strict.

And she is just going to take me to the doctor for my problem but can the doctor tell my mother if I’m having sexual or not?