Despite the fact that this is on your penis, nothing suggests it is an STD, it is simply a spot on your skin. See a dermatologist.
Ok thanks but like I’ve had these for months now and I never had sex or oral sex
Probably it didn't come from the dog.
If you decide to see a doctor about the spot, you should not assume that the lick did anything. You're likely doing the "flashlight effect," where a person assumes one thing is caused by another merely because that other thing was unusual. The timing seems too far apart, and people get spots on their private parts for other reasons, and dogs have clean mouths.