Prevent player from getting stuck between enemy and walls while also preventing player from being able to push enemy [NOT SOLVED]

Hello! I’m having issues with collision. I need my player to not get stuck between the enemy and other surfaces. I found that changing the enemy’s safe margin (I set it to 5) does exactly this however, this allows the player to be able to push the enemy around. When the margin is set to its default the player is unable to push the enemy as I want however, they get stuck between the enemy and other surfaces. How can I prevent the pushing but also prevent the player from getting stuck. (I DO want the player and enemy to be able to collide just not push each other)

Here is a video I recorded showing what the issue is: