You can still run SRB2 on Windows 7, if SRB2 isn't working on it then you've got bigger problems. Glaber uses Windows 7, and he can still run 2.2 just fine. If you're concerned about security... why? No official SRB2 download is dangerous. As long as you download it from srb2.org, you should be perfectly fine, nothing will harm you.
As for Windows 10, the same applies. I don't think SRB2 will drop support for Windows 10 anytime soon, especially given the current marketshare of Windows 11 (23%); compare with 10 (71%).
To be fair, they were still supporting the embedded versions at the time so you could technically say that the XP lineage was still under the M$ umbrella.