pub fn extract_identifier_from_match(caps: &Captures<'_>) -> Option<String>
Extract identifier from regex captures (first capture group, or last word of full match)