Despite their menacing appearance, solitary wasps are generally not aggressive toward people and there is little risk of being stung.
Males do not have stingers, but they might fly toward your face to frighten you away from their nests.
Solitary wasps do not defend their nests and will avoid people whenever possible.
However, female solitary wasps can sting to protect themselves if they are threatened or physically handled.