Windows 11 latest installer doesn't even present the option to use a local account. However, the mechanism to bypass this is to enter in a fake Microsoft Login ID and then wait for it to fail, then select something like "Other Options" at the dialog that comes up and then there's an option to use a local account.
I think you can also install without internet and you'll get the local account option too, but I have not tried it yet.
Super annoying. I ran into this last week while reinstalling Windows on a dead NVMe drive.