Press and hold the L button.
Keeping it held is what triggers the escape attempt, so a quick tap will not do it. Note that fleeing does not always succeed against faster enemies.