How to implement a RTS unit movement as Warcraft 3 does?

Godot Version

4.3

Question

I am trying to develop a unit movement similar to Warcraft 3. As you can see in this video, on Warcraft 3 the unit can detect the presence of other units in the path and update onw path to avoid those units. I have already searched on the web and all that I found is about the navigation avoidance attribute of the agent, but what it does (if I understand this well) is update the velocity to avoid other agents instead of update the unit path. I tried to implement this and what I am showing in the video is the best I can do with navigation_avoidance. Can someone give me some advice to improve my pathfinding to something similar to what Warcraft 3 does? It can be anything, a video, a blog post, gdscript example will be appreciated but can be in any language too.
Here you can find my project repository on GitHub