Location check for structure predicate not working after new updates

I was using this predicate:

{
  "condition": "minecraft:location_check",
  "predicate": {
    "structures": "minecraft:village_plains"
  }
}

And it worked fine until the 1.20.5 update... The predicate should run only when the entity actually steps on the structure (for example the a village path block) but now it's triggering seemingly everywhere even when flying and when far away from the structure

Continue to help post