The two libraries are not 100% compatible, in particular when splitting a line into elements. I opened an issue upstream, I don't know if it's a bug or not: https://github.com/ocaml/ocaml-re/issues/288.
Best, -- Arnaud Rebillout / OffSec / Kali Linux Developer