Just to clarify, on pixel phones, when you go to the recents menu, you are able to select text from all the app previews. If you have a photo with text open in an app and go to the recents menu, you can select and copy the text from that preview. Same goes if you use an app that doesn’t allow selecting and copying text. If you go to the recents menu, you will be able to select that text ;-)
I would guess it should be possible. Unfortunately I’m not really active in the modding community these days, so I cannot really recommend anything. It’s quite annoying with these Pixel locked features :-\