Routing localhost traffic to external IP address
Ok, I finally managed to solve the task. As Bob Harris suggested on Apple's forum, I used ssh tunneling to setup it.


On Windows I use OpenSSH
On Mac OS I use Core Tunnel
Core Tunnel doesn't allow to bind to 443 port directly, so I used another port and redirected 443 to that port via PF as described in initial post.