I have just made pathfinding system.
Here is the video:
I also created an NPC that uses this system to try to find the player.
You can test it here:
There you can teleport by pressing the left mouse button.
If you made an pathfinding NPC get stuck without teleporting on the walls or in the walls or outside of walls, then please let me know.
I would like to hear feedback!