Create a tar file with a name matching the pattern of up to 12 characters followed by ".tar" from the list of files, and include all files that do not match the pattern.
tar -cf $(ls | grep -i -Eo "[a-z0-9]{1,12}.tar$") $(ls | grep -v -Eo "[a-z0-9]{1,12}.tar$")