If you're unable to use families, then, you should pick the ID or UID of the enemy with the desired distance and check it against other enemies, every enemy with the ID different of that pick should back off.
But I prefer to simplify it using a mask around the player, when it touch an enemy, trigger a condition to set your needs.