hello sir, thanks for your question.
such pain in the area you described mey be an infection in the testis or spermatic cord
), pain which usually resolves when the affected side is raised. you need to ge for STI screening and treatment.
specialist help would be needed if persistence.