HELP PLEASE: avoiding mouse objects

Hey i was wondering if anyone knew i a way to solve this. Something i need for a project im working on.

Basically i want an object to avoid/dodge the mouse. But i want the mc to have a fixed x and y to move back to once the mouse is away. I also don’t want it to jump, i want it smooth like a follow mouse effect.

Can anyone direct me to a tutorial or a few that will help me:)

thanks