import re


def extract_ips(input_string):
    """
    Regex function to parse text and return a list of IPs in the text.
    """
    # Regex to parse IP addresses
    ip_matches = []
    ip_regex = '(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[?0-5]|2[0-4][0-9]|[01?]?[0-9][0-9]?(?!\w))'
    ip_matches = re.findall(ip_regex, input_string)
    return ip_matches