Pérez signed with the Miami Marlins as an international free agent on July 2, 2019.[1] He did not play in a game in 2020 due to the cancellation of the minor league season because of the COVID-19 pandemic.[2] Pérez made his professional debut in 2021 with the Single-A Jupiter Hammerheads.[3][4] In 20 starts split between Jupiter and the High-A Beloit Snappers, Pérez registered a cumulative 3-5 record and 1.96 ERA with 108 strikeouts in 78.0 innings pitched.[5]
Pérez split the 2022 season between Jupiter and the Double-A Pensacola Blue Wahoos. In 18 combined starts, he posted a 3-3 record and 3.97 ERA with 110 strikeouts in 77.0 innings of work.[6] Following the season, he was named the Marlins' Minor League Pitcher of the Year.[7] Pérez was assigned to Pensacola to begin the 2023 season, where he made 6 starts and logged a 3-1 record and 2.32 ERA with 42 strikeouts in 31.0 innings pitched.[8]
On May 10, 2023, the Marlins announced that Pérez would be promoted to the major leagues for the first time and debut against the Cincinnati Reds two days later.[9] He officially had his contract selected to the active roster on May 12.[10] He was optioned to Double-A Pensacola on July 7. In 19 starts for the Marlins in his rookie campaign, Pérez registered a 5–6 record and 3.15 ERA with 108 strikeouts across 91+1⁄3 innings pitched.[11]
On April 4, 2024, it was announced that Pérez would undergo Tommy John surgery, ending his season.[12][13]