My company still maintains a VB6 program that we just keep that IDE alive in an XP VM. I can attest that the VB6 applications will work on Win10 & Win11 with only minimal effort to get the required libraries so I would not be shocked to learn the IDE works too
See https://www.vbforums.com/showthread.php?898205-Can-Visual-St...
I don't think Microsoft will come after you for doing it even if you use a pirate copy.