I'm away from my 13" M1 MacBook right now but there was a 3rd party app I used that lets me choose any resolution and scaling on the built in or external displays. I like having a lot of workspace and thankfully have good eyes so my usual setup is 2560x1600 no scaling for the built in and 3840x2160 no scaling for the external portable USB C monitor I carry around with it.
There may well be a way to do it from the CLI as well but the app just sits as a tray icon in the menu bar which is great from a "I don't know what I just plugged in but I want to to just be <x>" perspective.
Can't you just go to System Preferences and click Alt + Scaled? That usually gives you all the resolutions that your monitor supports without having to use the "Larger/Smaller" visual options.
There may well be a way to do it from the CLI as well but the app just sits as a tray icon in the menu bar which is great from a "I don't know what I just plugged in but I want to to just be <x>" perspective.