pub fn extract_regex(value: &JValue) -> Option<(String, String)>
Helper to detect and extract regex from a JValue