Hostile land mobs are not moving in the water. They will swim upwards as to not drown but not move forward. Mobs Still attack when close enough for them to do so. Water mobs "Squids and temple guardians" are not effected.
Simple to reproduce- Push a mob into water/
Related issues
Comments

Dupe of MC-48616