Proton over pion ratio as a function of pT in pp collisions at 900 GeV, 13 TeV and 13.6 TeV with Run 3 data