import re


def is_rgb_code(s: str) -> bool:
    """ Returns True if `s` appears to be a single rgb escape code. """
    pattern = '^\033\\[((38)|(48));2;\\d{1,3};\\d{1,3};\\d{1,3}m'
    return re.match(pattern, s) is not None