The Scala spec states that names in the source should not contain $. These are reserved for code generation. Using a name with a $ will have undefined behavior.
https://github.com/apache/incubator-pekko/blob/fbac70e9dd57050449b6d00b7b9c6a2669d600d3/remote/src/main/scala/org/apache/pekko/remote/transport/PekkoPduCodec.scala#L131
A change in this undefined behavior was found in scala/scala3#18227
Solution: change the name of this object.