Esteban Ocon will leave Alpine at the end of the 2024 Formula One season, the team said on Monday.