Several IDF special forces soldiers died in the raid which recovered the bodies. It sounds like the IDF had intelligence about their location, but the hostages were killed before they could be rescued.
The soldier that had been held “hostage” died on Oct. 7th during the Hamas attack and Israel knew that at the time. Israel considers even the deceased to be held hostage.