Source based PBR

Can I do a source based PBR in RouterOS where the action once the traffic is matched is to change the next-hop ip address, i.e. the gateway?
I found many solutions to this where source based PBR is implemented, but they use an additional route which is added to the routing table. Can I do it only by changing the next hop IP?

I’ve never found a way to do that in RouterOS unfortunately. If you figure it out, post it here