Please try again by installing the Python version 3.10
which supports all the latest Tensorflow 2.18
and Keras 3.7
.
However I tried with Python version 3.9 and able to install Tensorflow version 2.18 and Keras 3.6 successfully in Google Colab.
Please have a look at the below screen shot.
Lets us know if the issue still persists. Thank you