The PS5 has the same VPN-related caveats as the PS4, so all of our advice on this page will still apply – namely no native VPN support and the need for Smart DNS or some sort of router VPN function.
So, if you've got a PS5, our recommendations would be exactly the same as for PS4.