@forteller Currently I don’t think applications expose text to the compositor so that the text can be saved as part of the screenshot but I believe the new access kit backend in @GTK might be a stepping stone to that.
I believe storing text that is contained in screenshots is already done on platforms such as iOS, where when I search for some text, it will show up all the photos that had that text in them. Maybe that work could be integrated in GNOME