aka Live Text
Open the Camera app.
Brackets will appear meaning text is recognized.
Tap the Live Text button to access text.
Text can be copied, spoken, looked up, translated, etc.
To select portions of the text, touch and drag your finger to select text. Use the blue "handles" to select more or less.
Tap outside the text box to close Live Scan.
Open Notes.
Tap the camera icon.
Tap Scan text.
The scanned text will show up in the text field.
Tap the Live Text button on the bottom right to select parts of the text.
Touch and drag your finger to select text.
Tap insert to close the scan window.
How to use Live Text in a photo on iPhone and iPad | Apple Support
How to scan text into Notes on iPhone, iPad, and iPod touch | Apple Support