The recent base Framework 13 would cost you $1,170, Ryzen AI 5 340, with 16GB RAM, 512GB SSD and 4 full featured (USB4) USB-C ports. Note: You can buy the RAM and SSD separately, Framework even links PCPartsPicker (no price for 2x8GB RAM, so price is for single 16GB). How much storage space does your last gen M4 Macbook Air come with? 256GB would be irrelevant for most anyone, as you cannot upgrade... unlike with a Framework, where you can upgrade everything.
You are comparing dissimilar things, anyway. On a recent Macbook, you are hard stuck with MacOS. If you don't want MacOS (or ARM for that matter), Macbooks could be free and it's still the worse deal. Macbooks are subsidized by pushing you into the increasingly locked-down software/hardware ecosystem, where Apple is rent seeking. Paying for a firewall, or virtualization environment is mostly unheard of in the Linux world. It's like a cheap printer, where the real cost is DRM protected ink.
On a Framework you have excellent support for both Windows and Linux. You are free to do whatever you want.
You can buy RAM and SSD for many other much cheaper Windows laptops too. I don't see why anyone should buy significantly overpriced Framework laptops.
macOS is excellent, much better than Windows nowadays. If you're a dev, macOS is also generally superior to Linux since dev tools often come out on macOS before Linux. macOS is also generally a much better machine when you're not doing dev work.You can argue about how Framework is better here and there but in reality, Framework only makes sense for 0.001% of laptop buyers, maybe less.