Unable to reproduce the behavior on ArcGIS Pro 3.2.0 when running the script from VS Code.
'S38944308' is the expected result from the provided script and the value received for the in_memory table and after running FeatureClassToFeatureClass to save it to a file geodatabase.
Contact Support Services if you this issue still persist after having moved off the beta release.