Pathfinding Priority (Layers)

Godot Version

Godot 4.2.2

Question

I use one big grid (NavigationRegion2D) for the whole map so that all characters can move on it, but I also have paths from tiles, how can I make it so that the characters have priority over the paths rather than the whole map, so that they try to move on it? but at the same time allow them to move on the whole map in case of deleting the path