I was trying to stick to non perl specific regex features. There's
(*MARK:NAME) as a similar alternative, not sure what all supports that besides perl and pcre though. Edit: according to
https://rbuckton.github.io/regexp-features/features/backtracking-control-verbs.html, nothing else supports it.