From Visual Studio 2022 Git Changes tool window, I was able to 'View all commits', then select the commit I wanted to edit. Right click on the commit and View Commit Details. After that, I clicked Edit above the message, made the desired changes, and saved them.