import re


def has_2x_in_row(chars):
    """
    It contains at least one letter that appears twice in a row, like xx,
    abcdde (dd), or aabbccdd (aa, bb, cc, or dd).
    """
    if re.search(r'(\w)\1+', chars):
        return True
    return False