def METHOD_NAME(file_path: str, pattern_to_find: str):
    line_numbers = []
    with open(file_path, "r") as file:
        # Read all lines of the file into a list
        lines = file.readlines()
        # Find the lines containing the string to find
        pattern = re.compile(pattern_to_find)
        line_numbers = [i for i, line in enumerate(lines) if pattern.match(line) is not None]
    return line_numbers