How to register a collection property to a custom property group
Thanks to @batFINGER for the answer.
I just had to use this code instead, using the actual class name instead:
bpy.types.Scene.my_group = PointerProperty(type=MyGroupClass)
MyGroupClass.my_list = CollectionProperty(type=MyListClass)