After some debugging with some slow geoshapes queries we figured out that we had some indices missing both on eqiad and on codfw clusters.
We manually triggered a reindex and performance went back to normal.
We had similar issues in the past and it would be a good idea to proactively have some sort of check for our index integrity.