How to fix enemy sticking to player

Godot Version

4.2.2

Question

I have a player and an enemy that follows it. Both are characterbody2d’s and whenever the enemy touches the player it sticks to the player even though the enemy is much slower. Is there a way to fix this?

Maybe the enemy is considering the player a moving platform. Try changing how it reacts to moving platforms.