I did this for a few years, more than a decade ago when my RSI flared up. The software has gotten better at recognizing words since then, but it's still very painful to write code.
One of the big problems is navigation within a document. Coding requires going backward and forward and up and down and jumping around a lot, and it's hard to set up dictation software to do this quickly and easily. The fourth time you say "up-arrow" in a row, you kind of want to give up and do something else. Nowadays IDE navigation helps a little ("Jump To Superclass") but in half-finished code it's still a big problem.
So if you can use a mouse to augment the voice, that might help.
Good luck surviving the flare-up, and take actions to change your setup, reduce stress, and do gentle exercise (not of the wrists, just in general).