update yaml coercer to deserialize string position to regex