tensorflow 2.9 -- 2.12 does not exist for M2 processors. More precisely, Google did not build and publish the packages on PyPI. You can see this for yourself: https://pypi.org/simple/tensorflow/ (Look for packages of the form macosx_*_arm64). My understanding is that at the time when tensorflow 2.9 was published (cca 2022), M1, M2 chips didn't exist, or at least they were not popular, and so Google didn't build tensorflow for these processors. Later Google didn't bother to publish these packages and assumed that people would use newer version of tensorflow instead.
Your best bet is to install a later version of tensorflow, i.e., 2.13 or later. Do not install tensorflow-macos -- that is just a bandaid.