Lost Hero of the village

I was playing Minecraft on online servers and I made a theme park near my Minecraft house in survival servers. It’s a huge World I’ve worked on for about 5 years now. In that world there are plenty of villagers thanks to a villager spawner I placed.

The funny thing is, the other night, I triggered a raid as the game thinks my huge theme park is one huge village, which I successfully beat and got the totem of undying and Hero of the Village too, which was awesome.

I was so thrilled because there’s so many villagers affected by it. But last night I went for a wander around the world to get some cats and I ended up dying, but I did manage to recover my stuff and return back to home and my theme park. But then I noticed that the Hero of the Village effect seems to have gone away?

Any ideas what’s going on?