import re


def get_size_from_tags(tags):
    """Searches a tags string for a size tag and returns the size tag.
    Size tags: spacesuit, extrasmall, small, medium, large, extralarge.
    """
    match = re.search(
        r'\b(spacesuit|extrasmall|small|medium|large|extralarge)\b', tags
    )
    if match:
        return match[0]

    return ''