Do not worry all instruments are well sterilized. Before and after every patient and plus dentists use fresh gloves in every patient they see. So do not worry .nothing will happen to you. Infact dentists are at risk of getting infection
because they deal with patients on day to day basis .when they actually do an extraction or a root canal treatment
or cleaning. Or even an implant .for that matter.