The problem is there, but it's been toned down significantly from what I remember in v0.51a. They do somewhat avoid enemy vessels when retreating now by trying to keep out of enemy firing range (give or take). So they do in fact veer around enemies that are in ther retreat path. It's better than before when they would just beeline straight for an edge, disregarding enemy positions and incoming fire.
Also, note that which edge they retreat towards is partially defined/limited by the fleet tactic you choose before the engagement, if applicable (Attack, Defend, Escape.)
In any case, I'm pretty sure the devs are aware of the mild incompetence of the AI at times (both ally and enemy). Some are bugs (like their behaviour when a ship is venting), quirks, or just unoptimized so far. They still have a lot of gameplay aspects to add to the game, so I can understand the AI not being top priority (high, sure, but not top.) AI tuning would probably be best saved for the beta phase when everything essential to the game has been incorporated. That way, everything the AI has to take into account to behave properly is there for us to test all together instead of piece-meal right now. Though pointing out odd behaviour now has its merits as well (especially if it affects gameplay or is just infuriating at times
)