If a team leader leaves the team or doesn't pass levels for more than 3 weeks, the leadership is transferred to the player who joined the team next after the leader and is active (or to the deputy if there is such a player in the team).

Unfortunately, in this case it's not possible to return the leadership. However, you can ask the current leader to give you the leadership back 🛡