E.g. /(a\g<2>?b) - (c\g<1>?d)/ generates /(a(c(a(c(a(c(a(c(a(c(a?b)?d)?b)?d)?b)?d)?b)?d)?b)?d)?b) - (c?d)/.
Both sides of the generated output are wrong. The second part of the output is obviously wrong, and in the first part, the a?b in the middle is incorrect.