On January 27, 2020, the Diamondbacks traded Peguero and Brennan Malone to the Pittsburgh Pirates for Starling Marte.[2][3] He did not play a minor league game in 2020 since the season was cancelled due to the COVID-19 pandemic.[4] The Pirates invited him to their Spring Training in 2021.[5][6] He spent the season with the Greensboro Grasshoppers, slashing .270/.332/.444 with 14 home runs, 45 RBIs, and 28 stolen bases over ninety games.[7] Pittsburgh selected his contract and added him to their 40-man roster after the season.[8]
Peguero was called up to the Pirates' major league roster on June 17, 2022, replacing Tucupita Marcano.[9] He made his major league debut the next day, getting one hit and a walk in four plate appearances in a 7–5 loss to the San Francisco Giants.[10] In 2023, he played in 59 games for Pittsburgh, batting .237/.280/.374 with seven home runs, 26 RBI, and six stolen bases.[11]
Peguero began teaching himself the English language as a child in the Dominican Republic by listening to hip hop music, reading the lyrics and then translating them into Spanish. Before his first minor league season began, he realized that he had become fluent in English without having taken a single class when he was able to carry on a conversation with fellow Diamondbacks minor leaguer Pavin Smith.[13]