I’ve always set up a custom keyboard for exactly that! () on their own keys, [] on shift and {} above 0 and 9. It always struck me as the most natural alignment for prose and programming.
Thankfully between Ukelele [0] and MSKLC [1] it’s pleasantly simple to do
[0] for macOS: https://software.sil.org/ukelele/ [1] for Windows: https://www.microsoft.com/en-us/download/details.aspx?id=102...