Fix extension regex to allow three-letter langcodes and a special Japanese one (ja-JP-mac).