Roting SOCKS5 connections

Is there a way to route the connections that are created by socks5 clients? I really want the socks5 clients to be NAT’ed to a wireguard interface but I can’t find a way to do this so far.

Can I tag those? do they apply port based rules? how do I even look at those?