This isn't a bug, rather something annoying that will not change.
mIRC use $N itself in order to get the \N value that can be used in $regsubex, like $regml().
Edit : some better explanation :
https://forums.mirc.com/ubbthreads.php?ub...true#Post193737