### Description

In #84210 we added logic to bypass an assertion when running BWC tests against some released versions since the assertion is known to fail on them. At the time there were no released versions on which the assertion holds, although it does hold on all the the relevant branches. This means we cannot be sure which versions will eventually carry the fix. When fixed versions are released, we should update the logic to reflect reality. This'll need doing in every active 8.x branch.
test/yaml-rest-runner/src/main/java/org/elasticsearch/test/rest/yaml/section/DoSection.java
}
                for (Pattern pattern : allowedRegex) {
                    if (pattern.matcher(message).matches()) {
                        matchedRegex = true;
                        break;
                    }
                }
                if (matchedRegex) {
                    continue;
                }
                unexpected.add(header);
            } else {
                unmatched.add(header);
            }
        }
        if (expected.isEmpty() == false) {
            for (final String header : expected) {
                missing.add(header);
            }
        }
        if (expectedRegex.isEmpty() == false) {
            for (final Pattern headerPattern : expectedRegex) {
                missingRegex.add(headerPattern.pattern());
            }
        }
        
        
        for (Iterator<String> warnings = unexpected.iterator(); warnings.hasNext();) {
            if (warnings.next().endsWith(RestPutIndexTemplateAction.DEPRECATION_WARNING + "\"")) {
                logger.warn(