Problem opening penis foreskin

I am a 17 year old, I started to noticing since last few months that during erection my foreskin of penis pains a lot to pull back, it has been happening since a long time but I didn’t pay much attention to it. When not erected, I am able to pull it back easily but during erection it pains a lot, it doesn’t have any effect of erection, ejaculation or stamina, but I am afraid that it will create problems during future intercourse, I don’t feel anything normally or even during erection or masturbation but whenever during erection I try to pull it back it pains a lot, what should I do about this , will it become a hazard during intercourse ?

(should i attach any images ? )

Sounds like you may have phimosis. Depending on how severe the phimosis is, you may be able to do foreskin stretching at home. You may post a photo, as I would not recommend self-stretching if your condition is more pronounced.

You describe minor phimosis. Stretching is the best way, but it does take months to years. Generally include some form of masturbation to do this as it’s more fun.

Some guys only get a fully retracting foreskin in late teens or early twenties. So still time yet for stretching to work well for you.

It may or may not cause you trouble with intercourse. This will take some trial & error to find the most comfortable way. For some, the best comfort is by leaving the foreskin forward, others need to pull it back before fully hard. I’d say to try with a DIY toy (instructions on most amateur p..n sites) unless you have a understanding partner. Be careful not to have it get stuck behind the head when hard as that will probably land you in hospital.