Reproduction steps:
1. Open the attached project “HidingColliders”
2. Create 4 empty GameObjects
3. Onto 3 of them add the “Box Collider 2D” component
4. Make the 4th GameObject the parent of the other 3 by dragging them onto the 4th one
5. Select the parent GameObject
6. Observe the Scene view
Expected result: All of the created colliders are visible
Actual result: Gizmos for the colliders are not drawn
Reproducible with: 2021.3.28f1, 2022.3.4f1, 2023.1.3f1, 2023.2.0a22
Reproducible on: Windows 10
Not reproducible on: Intel MacOS 13.4
Note:
Restarting the Editor will make colliders visible, but not necessarily all of them