Add API to get the compile and match flags from a GRegex