Um. This is going to sound harsh, but ... drop the idea. It's not simple, not at all.
Start here:
Syntax Highlighting[
^] and that will give you a starting point - note that yioun won't find exactly what you are looking for there, actually validating it will take a lot more work - a whole load more - and isn't a task I would start expecting quick results even with my 40+ years in development behind me. I'd be thinking of maybe a man-year of work, maybe more if I wanted something that kept up-to-date with C# as it evolves - and I would!
You aren't going to get this to work with just a regex, trust me!