Parse extensions as a key/value array.
!test Migrate existing tests for full langtag.
Simplify the regular expression of langtag.