# Search for videos matching the query results = [video for video in videos if re.search(query, video["title"], re.IGNORECASE)]