The bug
If the difficulty is set to peaceful, hostile bees will try to attack the player, but deal no damage.
To reproduce
Summon a bee or multiple bees
Change the difficulty to peaceful
Attack a bee
→ ❌ The bee will try to attack you, but won't succeed
The same happens if steps 2 and 3 are switched.
Intended.
Neutral mobs (like wolves and foxes), can still attack you even if your in peaceful mode difficulty and take no damage.
For foxes to attack the player, you have to attack another player when you have a trusted fox with you