def METHOD_NAME(self):
    """
    Parse the supported instance types emsg, obtained by calling CreateComputeEnvironment.
    The string is expected to have the following format:
    Instance type can only be one of [r3, r4, m6g.xlarge, r5, optimal, ...]
    """
    emsg = self._get_cce_emsg_containing_supported_instance_types()
    match = re.search(r"be\s+one\s+of\s*\[(.*[0-9a-z.\-]+.*,.*)\]", emsg)
    if match:
        parsed_values = [instance_type_token.strip() for instance_type_token in match.group(1).split(",")]
        LOGGER.debug(
            "Parsed the following instance types and families from Batch CCE error message: %s",
            " ".join(parsed_values),
        )
        return parsed_values
    raise BatchErrorMessageParsingException(f"Could not parse supported instance types from the following: {emsg}")