import re


def get_key_values(from_string):
    """
    Return a list of key value tuples from given string.
    Example: from_string = 'KEY1=VALUE1 KEY2=VALUE2' -> [('KEY1','VALUEE1'), ('KEY2', 'VALUE2')]

    :param from_string: string containing key-value pairs (string).
    :return: list of key-pair tuples (list).
    """

    return re.findall(re.compile(r"\b(\w+)=(.*?)(?=\s\w+=\s*|$)"), from_string)