Pathfinding around corners

I know true pathfinding is rather complicated. Right now I’m just using a system where enemies detect nearby checkpoint that give coordinates for their next checkpoint, but sometimes enemies get stuck on walls or corners. Does anyone have a method for course correction?
Less long distance path finding, but just moving around objects.

Raycasts? I really can’t think of another way

I think I might have an better idea if I can see the code for the movement

The object “Targeting” is the one you wanna look at.
It has three different navigation bundles. One for player, one for other targets, And the last for paths.

I can’t think of a good sollution for this without using tons of code…