fix conditional use of re::regex_pattern using if pragma