import re


def get_pins(file_names):
    """
    Get pins from USB device name (must be format MV1-****)

    Args:
        file_names: list of binary file paths
    Returns:
        pin_keep: list of pin numbers or devices
    """
    pin = []
    pin_keep = []
    for item in file_names:
        pin.append(re.sub(r'.*-', '', item))
    for items in pin:
        pin_keep.append(items.split('/', 1)[0])
    return pin_keep