Hide behind Walls

Hello everyone!

I’m new to A* pathfinding in Unity and didn’t find a solution or an answer here yet. I am programming AI-Bots for my Game, and they can run around finding new paths already considering colliders. I want to integrate an “Escape”-Feature, where the bots find the nearest Wall to hide behind from the enemy. Is there a feature integrated already like this? Or do you guys know any tutorial that explains how to achieve it?

I’m working in 2D, since my game is a Top-Down shooter.

Thanks for your help.