I am at work and cannot connect to test something like this, which is why I just added the reminder that it would need fixed so you weren't thinking that it would work as-is. Tomao or hixxy or someone else here should be able to provide a fix to it for you. If not, I'll see if I can look it over tonight.
Personally, I'd just make it easy and drop $comchan altogether. In general, you want the nick to be bold in a channel if the nick is in that channel (not if the nick is in another channel that you're in). In that case, there's no need for $comchan at all as you can just check the active channel (or query). Again, I can't test anything right now and would rather not use regex without being able to test it, so I'll have to leave that for someone else to set up.