import re


def server_version(headers):
    """Extract the firmware version from HTTP headers."""
    version_re = re.compile(r"ServerTech-AWS/v(?P<version>\d+\.\d+\w+)")
    if headers.get("Server"):
        match = version_re.match(headers["Server"])
        if match:
            return match.group("version")