I’m curious. If you are running into this a lot, then you must be spending a lot of time in the number/punctuation keyboard; the .?123 mode
If you are doing a lot of number entry, then their are third party number keyboards you can use. If it is punctuation, most of them can be done from the main keyboard using a swipe down gesture on the key to type the smaller grey punctuation above the main character. Numbers can be done this way too, but it’s inconvenient for more than a a few occasional digits.
It is fairly quick to switch between keyboards using the globe key (only appears if you have more than one keyboard enabled)
Note: For accents and character variations you can tap hold on a key for options, then slide your finger to the character of choice when the popup appears.