But it is a D&D game. And unfortunately it seems like a ranged combat simulator cause many enemies attacking from distance you have to run after them all the time. They alway throwing molotows, casting spells and than they run away. Play also Pathfinder WotR which also have a lot of problems but i do not rest so often in this game cause in this game there is a front line of fighters engaging many foes in hand-to-hand combat so my spellcaster can first kill the enemy archers / spellcaster while the frontline hold the line.
The AI at pathfinder is awful and not much better than it was at bg2. Most enemies stick to either the first target they see or the one that dealt the damage first. Sometimes they manage to change their target in some way, but they do it terribly inconsistently.
Besides, most of the enemies in pathfinder is a trash that is not in bg3 (and that's good)