How would I use PathfindingService to not go into a certain area

I am making a monster and I do not want it to chase players in the Safe Zone so I do not want it to go into that certain area or detect players in that certain are. I am wondering how I would do that? I do not know much about Pathfinding so I can’t find a solution on my own, I looked in the forum, but couldn’t find anything either.

There is documentation about making Pathfinding not go into a specific area: