If a zoglin attacks a bee, it will immediately get angry at him and its eye texture will change to red. And if you set a peaceful difficulty after that, the zoglin will of course disappear instantly, but the bee will still continue to be angry and her eyes will still be red. Steps to reproduce:
Write a command /summon minecraft:bee
Write a command /summon minecraft:zoglin
After Zoglin starts attacking the bee and her eyes turn red quickly open the pause menu and go to Settings World settings and there you set the peaceful complexity (it should not be locked with a lock, if it is locked, then remove it using the Nbt editor and your world should not be open to the local network).
Watch as zoglin disappears and the bee continues to get angry and her eyes are still red.
Thank you for helping us improve Minecraft! We saved your files: