Swollen Foreskin ( pictures attached )

Hi please help , currently my foreskin is swollen and it's been leaking pus , its been going on for the past 2 days and the last time i had unprotected sex was with my girlfriend 3 days ago. this is the first time its happening to me despite us having a active sexual relationship for a year now. the foreskin is painful when i touch it and i cant seem to pull it back , it feels dry too. please advice

image

image

image

looks like an std u should visit a doctor or sexual heath clinic