The following versions worked for me:
openpyxl==3.0.10 pandas==2.1.4
I use Python 3.12.3 and I am working on simple tasks of reading and writing .xlsx files