@salutcflolAh, yes, with PlayStation you can't directly use a Virtual LAN solution, unless you send the data first to a PC on your local network and then re-route it through that.
However, as @IkoRein pointed out, it may be possible to send the UDP data directly to your friend if you both have routers that allow it. On your end you need to setup a port forwarding rule, likely for port 20777 (default in F1 settings), for the local IP of your PlayStation. And then in the Telemetry Settings of the game you need to add the Public IP of your friend's computer.
On your friend's side they need to also add a port forwarding rule to their router, for the local IP of their computer and the F1 port (again, default is 20777). They will also need to allow the UDP data through their computer's firewall, so they will need to add an exception for that, and to be really secure you could give them your Public IP so the exception is only for the data you send.
Not all routers are created equal though. Most now have advanced firewalls built into the routers/modems themselves that, depending on the other settings, may block external UDP data even if you add port forwarding rules. So it may take a lot of experimentation to get it working. I would highly recommend you don't fully disable any firewalls on the routers or the computer though.
Alternatively, if you have a PC or Laptop on your end it would be easiest and most secure to use it to forward your UDP data. You would just send the UDP data locally to your PC/Laptop from your PS and then copy/forward that data to your friend over a virtual LAN (with Hamachi or similar).
Good luck!