Not an an expert, speaking from my understanding of NC laws, where I live. It would be problematic here because our laws prohibit sprays in excess of 5 oz. I think most bear sprays are 10 oz. To my knowledge there is no language specifically prohibiting its use against “hoomans,” however a good lawyer could probably make your life miserable for doing so.
All of that said, my wife is not comfortable using firearms for self-defense. I’m considering keeping some bear spray at home because it has some tactical advantages: 25+ foot range, wide pattern, and lots of volume fast. Has the potential to keep the creeps out of bad-breath range.