Or ssh -w can do the tun(4) interface for you, and supports both layer 2 and layer 3.
True that it won't be using UDP (or sshuttle can fix TCP-in-TCP issues for you), but for my usecase it works out better anyway, as many places I frequent restrict UDP usage. Even China doesn't block SSH.
By the way, if you check out the repository's README it already shows the SSH use case, but why not to have WireGuard available too? with it there's no need to manually setup any application to use/not use SOCKS, it's as simple as click "Connect" in the WireGuard client and all the traffic including ICMP and what not is tunneled through the server. It can even be installed at the router level so to have all the LAN traffic tunneled automatically, can't easily do that with SSH.
Different use cases, not saying SSH isn't valid, I just prefer WireGuard UX.