UTF-32 is a fixed-length encoding of Unicode[1], so it does simplify things a lot for a regex engine.
[1] At least when talking about code points, which is what matters for regular expressions (unless you want stuff like \X with is not universally supported).
[1] At least when talking about code points, which is what matters for regular expressions (unless you want stuff like \X with is not universally supported).