It looks like macro annotations can now modify their companion objects in Scala 3.5.0: https://github.com/scala/scala3/pull/19677