I faced the same double space dot issue with Sublime Text 4 on macOS Sonoma 14. Like Isaac, I was surprised because this had never occurred with any other text editors, mainly Atom, Pulsar, TextEdit, and nano, regardless of having programmed actively on macs for many years.
The article linked by nutjob2 above is quite old (2016) and macOS settings have changed a bit. On macOS Sonoma you can disable the automatic addition of dot by following the route: System Settings → Keyboard → Text Input → Input Sources → Edit → Add full stop with double-space. Disable it and you are good to go!