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

Yes, the type arguments (if any) go between the two spaces.