Implement placeholder extraction for icu_pattern (#8074)