In the 2018 federal elections, he was nominated by the National Regeneration Movement party as a substitute for Ricardo Ahued Bardahuil to be senator of the Republic. After the elections, Ahued Bardahuil occupied the seat of second-party senator representing the State of Veracruz.[1]
He was secretary of economic and port development of the State of Veracruz from 1 December 2018, to 28 May 2019, during the governorship of Cuitláhuac García Jiménez.[4] He left office to take over as substitute for Senator of the Republic Ricardo Ahued, after he was named Director General of Customs.[5] Within the senate, Pérez Astorga held the position of secretary of the Asia-Pacific-Africa foreign relations commission.[1] He left the seat on April 30, 2020, after Ricardo Ahued announced his resignation from the customs administration and decided to rejoin the Senate.[6]
On 1 April 2021, he rejoined the Senate following Ricardo Ahued's request for leave to run as a candidate for the municipal presidency of Xalapa in the state elections of Veracruz.[7][8]