I faced the same issue, so I downgraded Python from 3.11 to 3.10,
and that solved the problem without any extra effort.
Created a new python environment with python 3.10 and then installed faiss-gpu
I am using
Ubuntu(WSL) 22.04
cuda 12.4,