fixes #5: implement RegexFlags with parsing, rendering, and retrieval