from typing import Optional
import re


def get_server_type(data: str) -> Optional[str]:
    """
    Extracts type of the server.
    :param data: Input data.
    :return: First regex match.
    """
    server_type = re.findall(r"(cx.*)", data)
    if server_type:
        return server_type[0]
    else:
        return None