I confirm. If the SDK version in the pubspec.yaml file is set to 3.7.0, then trailing commas are automatically removed. If the SDK version is set to any earlier version, then the previous code formatting is restored.
Here is a link to a nice article about the formatting changes: https://codewithandrea.com/articles/new-formatting-style-dart-3-7/
And here is the link to the official proposal: https://github.com/dart-lang/dart_style/issues/1253