proc re(s: string; flags = {reStudy}): Regex Run
proc re(s: string; flags = {reStudy}): Regex
The documentation doesn't really make it clear because of the default value, but flags is of type set[RegexFlag].