Nowadays we have AI that can write college theses, write movie scripts, draw pictures, etc., and yet we have AI enemies in video games that still can't make the simplest, most life-preserving decisions such as not fighting a Steel Watch alone when you can't, healing when you need to, or running to the nearest exit when outnumbered and outclassed. Sadly, in a near-perfect game such as BG3, AI allies still make these blunders and more, as any player of this game can attest.
In one of the final fights in the Upper City...
you can summon the allies that you have recruited earlier. But sadly, they are all AI-controlled allies that can't do s___. They stand in each other's ways (make it tough for them to run through narrow passages), have lousy pathfinding, use spells inefficiently (such as using Misty Step for a mere 10-feet teleportation), and generally do things that put themselves in harm's way instead of helping. Why can't one of them "Help" us when we are "Downed"? Use Dimension Door for those who can't fly? Just do anything SMART.
This is an issue with games in general, of course. In this day and age, AI intelligence should be a lot better than what it is.