It seems like you have been given a correct diagnosis. Shingles
is painful vesicles in a particular nerve
distribution involving adjacent parts of your skin.
Shingles is a actually reactivation on Varicella
zoster virus(VZV) which causes chicken pox
first. You would have had chicken pox when young. The thing is if someone who is going to be around you hasn't had chicken pox before, they would get chicken pox if exposed to the virus from you. If they already had chicken pox before no need to worry for them. They won't get it again.