Can confirm for 1.20.5. Most probably affects all versions from 1.17 till 1.20.5.
Can confirm for 1.20.4 and 1.20.5. Probably all versions from 1.17 till 1.20.5 are affected.
@tryashtar Sorry about that, I wasn't aware that was necessary. I looked into it and I'm pretty sure the new datapack version I uploaded (v2) is now correct. Unfortunately it gives the same result, so it does seem that there is actually a bug. (If the datapack is still not correct, could you please explain how it's supposed to be)
@turbo I've done so now.
Can confirm. Affects Piglin, Piglin Brute and Hoglin.
Most probably related; changing the minecraft.generic.follow_range doesn't seem to affect the Piglin, Piglin Brute and Hoglin at all anymore.
Added a v3 datapack file to account for the new folder names structure that exists since 24w21b.