A problem for me many times over.
I accomplish this quite easily on macOS using BBEdit → the app supports find and replace on multiple files, including whole directories.
I’d still like to join the request for a feature for ease of use, but mainly for iOS and iPadOS.