Pain coming from meatus/ just inside the penile opening. Sharp at first. Intermittent. Monogamous heterosexual. Participated in anal sex 2 weeks ago?

Several causes. Infection is on the list as is irritation from soap, body soap, lotion or other new products. Best to see you doctor for evaluation to check for infection as cause. Untreated this can cause you significant problems later. Hope this helps. Best of luck. Dr R.