How do I make a dash system but the character gets sent in the opposite direction it's facing?

Hi guys. I’m trying to make this 2D game where my character has a gun that when fired, it sends the player in the opposite direction. How do I make this with a cursor on screen? I already have the system where I fire the bullets but I don’t find any info that leads me to this dash effect that I want. Please help!