Black holes are not actually black, they radiate energy outward in the form of black body thermal radiation, and emit extremely weak light (electromagnetic waves), which is called Hawking radiation  Because the Hawking radiation releases energy, the black hole will gradually become smaller and eventually disappear (the black hole evaporates)
Some scientists believe that Hawking radiation does not contain information, which means that the information of objects swallowed by black holes will disappear
After any information-carrying matter is swallowed by the black hole, the thermal radiation released from the black hole does not carry any information