Redirect Haproxy URI regex

I would like to redirect url like
HA-Proxy version 1.6.3 2015/12/25

http://www.domain.com/listing/hood/s4093287-374-2750-55-street-nw
http://www.domain.com/listing/hood/st/s4094083-208-9503-101-avenue

to
http://www.domain.com/school/374-2750-55-street-nw--s4093287
http://www.domain.com/school/208-9503-101-avenue--s4094083

Basically Group 3 2

I have this but its not working

acl school hdr(host) -i www.domain.com
reqrep /([A-Za-z]\d+)-(.+) /school/\2–\1 if school

But its not working