RIO DE JANEIRO (AP) — Peru beat Paraguay 4-3 on penalties Friday to advance to the Copa America semifinals in the most thrilling tournament match so far.

Regular time at the Olimpico Stadium in Goiania finished 3-3 after a hard-fought match that included red cards to key players of both teams and two goals by Italian-born Gianluca Lapadula for Peru.

The decisive moment in the quarterfinal came after Peruvian goalkeeper Pedro Gallese stopped Alberto Espinola in the shootout. Miguel Trauco converted his shot to put the runners- up of the 2019 Copa America back in contention.

Daniel Martinez and Braian Samudio had also missed for Paraguay. Santiago Ormeño and Christian Cueva were stopped by Paraguay's Antony Silva.

“This was an amazing match,” a tired Lapadula said after the shootout, in which he converted from the spot. “We can't choose adversaries, we have to think we are in the semifinal. Now we have to work to get there well.” Peru will face either Brazil or Chile, which also play Friday.

Paraguay was without Miguel Almirón, one of its top players in the tournament, due to a left thigh injury.

Coach Eduardo Berizzo's side opened the scoring in the 11th minute with Gustavo Gómez pushing the ball to the empty net after a corner.

Lapadula scored his first in the 21st from close range after an assist from Andre Carrillo. He added another in the 40th minute with a crossed shot from the left flank after Paraguayan defenders stopped to complain about a foul.

Peruvians looked certain they would advance after they took the lead and Paraguayan defender Gómez was sent off in added time after a second yellow.

But Paraguay started the second half well and put pressure on Peru. Junior Alonso levelled the scoring in the 54th minute after burying the ball past Gallese after a corner. And opportunities kept coming, especially in corners.

Peru's Yoshimar Yotún frustrated Paraguayans with a goal from the edge of the box 80th minute after the ball deflected off a Paraguayan defender. But more twists were to come.

Five minutes later, Peruvian striker André Carrillo also received his second yellow. Paraguay decided to charge forward and it resulted in a late close-range goal by substitute Gabriel Avalos — who had stepped in eight minutes before — to level the match and send it to penalties.

Lapadula said on Instagram he had ended the intense match with a broken nose.

Peru advanced to the semifinals after Lapadula, Yotún, Renato Tapia and Trauco scored in the shootout. Paraguay's Ángel Romero, Alonso and Robert Piris da Motta also converted.

“We can't enjoy this, we have to focus on what is coming," said Peru coach Ricardo Garea, who took the team to its fourth consecutive Copa America semifinal. “We have embodied a playing style for many years now.”

Peru will play its Copa America semifinal on Monday at the Nilton Santos Stadium in Rio de Janeiro. It lost 4-0 in the group stage of the tournament to Brazil, one of its possible semifinal opponents.


More AP soccer: and