I've been having a sharp pain in my scrotum lately?

Intermittent torsion. Of testicle is a possibility. Some spermatoceles, when touched, squeezed or traumatised when running or walking can give sharp pains. Please consult with a urologist.