Sadly, nope. And I'm not even on a MBP M2, just a maxed out MBA M1, The best laptop I ever had. Processing power is more than enough for what I develop, and after more than two years I can still easily work my day with a single charge. Meanwhile, coworkers suffer with Dell laptops running different Linux distros: power management problems, battery life is tiny, fans blowing like they're hoovers. Oh... and they all have more expensive laptops than me.
But Apple bad. Not professional. Or so they say.
But if 10 hours is enough I think ASUS Zenbooks and the ProArt line are pretty good Linux machines. They have faster GPUs and betters screens (OLED) too.
I just like using / writing code on macOS more than windows, not much else to it.