Yes, recycling batteries is an issue. Conditions in rare earth mines are an issue.
But when you want to "consider hidden costs" of EVs you should do the same for ICE cars. And there are lots of these, including building, maintaining and recycling supertankers, refineries, pipelines, oil wells on land and in the sea, causing oil spill every decade, keeping oil tyrannies in charge, fueling resource wars in 3rd world countries.
But it's status quo so it doesn't count.