-
No worries.
Just in case it wasn't clear, what I meant is that 9 speed Shimano mtb and road derailleur and shifters / brake cable pull are largely compatible/interchangeable. I have a feeling a mtb shifter requires a mtb front derailleur, but you might want to double check that.
Same goes for SRAM with their mtb and road 10 speed.
Usually people mix and match so they can use road shifters, so as you suggested something like a Tiagra 4700, or Claris would be an easier / better option if you want flat bars.
What slothy said.
You want either Shimano 9 speed or Sram 10 speed.