import re


def replace_placeholder_in_string(str_value: str, keys: dict) -> str:
    """find in string ${placeholder} pattern and replaces it with item from keys dictionary"""
    regex_template = '(?:\${)(\w+)(?:})'
    matches = re.findall(regex_template, str_value)
    if len(matches) > 0:
        matches = set(matches)
        for match in matches:
            replace_template = "${%s}" % match
            str_value = str_value.replace(replace_template, keys[match])
    return str_value