He was raised in the community and graduated from the Faculty of Economics at the University of Novi Sad in Subotica, focusing on business information systems.
)[9] Pék also appeared in the third position on the Hungarian Coalition's list for the Senta municipal assembly in the 2008 Serbian local elections, which were held concurrently with that year's parliamentary vote.
[10] The coalition's list won a plurality victory with twelve out of twenty-nine seats, and Pék was assigned a mandate.
[14] He remained in this role until February 2010, when shifting political alliances in the municipality brought the Democratic Party (DS) to power in a new administration that did not include the VMSZ.
[16][17] Serbia's electoral system was reformed in 2011, such that all parliamentary mandates were awarded to candidates on successful lists in numerical order.
Pék held the same committee assignments and friendship group memberships as in the previous parliament and continued serving with Serbia's delegation to the PABSEC.
[27] The VMSZ led a successful drive to increase its voter turnout in the 2020 Serbian parliamentary election and won a record nine seats.