Sergio Perez’s departure from Red Bull at the end of the 2024 season marked the end of a tumultuous four-year partnership.