When you publish your game to Steam, I’m almost positive they check the insides of it. But at least they aren’t notorious for a high number of false-positives when they do things like this. I also doubt the people who check your game are even willing to sell/share the code because they likely can make something similar or even above what you made.