Fix regex for matching language codes