import re


def string_to_list(option):
    """Convert string to list.

    List may be enclosed in [], {}, (), or not enclosed. List entries must be comma delimited.

    Args:
        option (str)
            String to convert.
    Returns: (list)
        List of strings.
    """
    PATTERN = r"[\{\[\(](.*)[\}\]\)]"

    match = re.search(PATTERN, option, re.DOTALL)
    optionStr = match.groups()[0] if match else option
    return [name.strip() for name in optionStr.split(",")]