You can split the sentence with Regex.Split() by word boundary and search for the word with simple Enumerable.Contains. It may be useful when you have to search for multiple words in one sentence (Just put them later into some HashSet for even better lookup):
var line = "Hello, How are you ? ";
var pattern = @"\b";
var words = new HashSet<String>(Regex.Split(line, pattern));
Console.WriteLine(words.Contains("Hello"));
Console.WriteLine(words.Contains("ello"));
Console.WriteLine(words.Contains("How"));
Or if you want to search for a single word once in a while, you can search directly by regex escaping the word and combining it with @"\b"
:
var line = "Hello, How are you ? ";
var wordBad = "ello";
var wordGood = "Hello";
Console.WriteLine(Regex.Match(line, $"\\b{Regex.Escape(wordBad)}\\b").Success);
Console.WriteLine(Regex.Match(line, $"\\b{Regex.Escape(wordGood)}\\b").Success);