OSTechNix published a tutorial about resetting the Sudo password In Ubuntu 22.04.
Reset Sudo Password In Ubuntu 22.04 LTS
This brief guide explains how to reset sudo password in Ubuntu 22.04 and 20.04 LTS desktop and server editions from rescue mode.
Reset Sudo Password In Ubuntu 22.04 LTS - OSTechNix