[PATCH 2/6] reg: Improve initial syntax checks during the 'export' operation