Sperm can't go through clothing or any type of material, you can't be pregnant unless the sperm or precum has actually gone inside you (sorry for the details) and because you didn't actually have sex, there is NO chance you could be pregnant, stop worrying it makes it worse

good luck xox