I have 2.2 and 2.4 and can recreate the behaviour.
You could run quser and parse the output to get the session id.
C:\Temp\test>psexec \\test10 -u admin -p admin quser.exe
PsExec v2.4 - Execute processes remotely
Copyright (C) 2001-2022 Mark Russinovich
Sysinternals - www.sysinternals.com
USERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME
admin 1 Disc 1 10/11/2022 7:54 AM
testuser console 2 Active none 10/18/2022 2:23 PM
quser.exe exited on test10 with error code 0.