VM-based regular expression engine in Rust