There are several ways to do this
5 Ways to Change a User Account Name in Windows 11
If you’re unhappy with your current Windows username, want to change things up, or have multiple accounts with similar names, that’s no problem. Changing your username is easy. This tutorial will show you how to rename a Microsoft or local account in Windows 11 and Windows 10.
Before you change your username on Windows 11 or 10, you'll need to determine whether you're using a Microsoft account or a local account. To do this, open the Settings app (right-click the Start button and select Settings), then look in the upper-left corner of the window.
If you see a name and email address, you're signed in with a Microsoft account. If it says "Local account," you're using a local account.