Quick search revealed that this was already reported but never fixed.
February 2021: Jumping mobs - #2
June 2021: Jumping mobs don't take damage - #3
It was acknowledged as a known issue in the second post, maybe third times the charm, could it be fixed please?
EDIT: Inserted the same link twice.