He returned to Pirata for the 2018 Copa Perú, where he scored seven goals and played a key role in the squad that won the title and promotion to professional football.
[6] On December 4, 2020, Valera reached a deal with Peruvian club Universitario de Deportes and joined their squad on a 1 year contract.
On 1 August 2022, Valera joined Saudi Arabian club Al-Fateh on a three-year deal,[9][10] despite the Peruvian transfer window having already closed.
Barely five months later, during which he only played six games, and arguing a lack of payment, he left Al-Fateh and returned to Universitario in January 2023, signing for two seasons.
Valera was called up to the Peru national football team for the 2021 Copa América and made his senior international debut on June 17, 2021, coming off the bench in a 4–0 defeat against Brazil.