Putting the cursor in the middle of a word by tapping with a thumb is a game of chance. The keyboard has a trackpad mode that makes it precise.
Touch and hold the space bar with one finger until the keyboard turns light gray and the letters disappear. Then drag your finger around the keyboard and the insertion point follows. Apple’s guide for editing text on iPhone describes this.
To select text, keep holding with the first finger, touch the keyboard with a second finger and then move the first finger to adjust the selection.
The advantage over tapping on the text is that your finger is not covering what you are aiming at, and the cursor moves one position at a time if you drag slowly. It also lets you go past the edge of the screen, for example in a long note, where tapping would scroll the wrong way.
It works in any text field that uses the system keyboard, so also in Messages, Mail, Notes and Safari.
The caveat is that a third-party keyboard may not offer the gesture. If it does not work, the keyboard is the first thing to check. Also, lifting your finger on the space bar too early just types a space, which is the one thing that gets annoying when you are editing a number.
Further reading: Apple Support: select, edit, and move text on iPhone
Going deeper: Guide: Immich on Unraid, back up the photos on your iPhone automatically