Now I’m imagining a Rust UncheckedString type with a to_string() method that takes a regexp.