Can't speak for other places, but earplugs have been legal in California since 2004. Prior to that only custom molded earplug were legal. The current law allows:
d) A person wearing personal hearing protectors in the form of
earplugs or molds that are specifically designed to attenuate
injurious noise levels.