In iOS 17.x there is no more option to select text in scanned documents. It appears only a kind of magnifying glass.
If a photo is inserted, it works as in iOS16.x - text can be selected, copied, etc.
If a photo is inserted, it works as in iOS16.x - text can be selected, copied, etc.