Reproduction steps:
1. Open the attached project "ShaderPackageRequirements"
2. Select NewUnlitShader.shader in the Project window
Expected result: no errors in the Inspector
Actual result: there is an error in the Inspector:
"Shader error in 'Unlit/NewUnlitShader': Subshader 0, package com.unity.textmeshpro: invalid package version string"
Reproducible with: 2021.3.29f1, 2022.3.5f1, 2023.1.5f1, 2023.2.0a22
Reproducible on: macOS 13.4.1 (Intel)
Note: reproducible with TMPro package versions 3.2.0-pre.4 and 3.0.1-exp but not 3.0.6