0

Brain-Flak, 56 bytes
({}(<({})>)(<>))({<([{}({}())])><>([{}]([{}]))<>}<{}{}>)
Try it online!
Stack clean version, 62 bytes
({}(<({})>)(<>))({<([{}({}())])><>([{}]([{}]))<>}<{}{}<>{}{}>)
Try it online!
Riley has tied this answer here, but his stack clean version is 78 characters while mine...