Nut groove and screw groove for screws with hexagonal shells are a common design element.
One thing to keep in mind is that if you put a nut in the groove, a screw length must then be used so that the screw does not bottom in the groove. If the screw bottoms when tightening, the nut will be pushed through the aluminum flanges before tightening.
In addition, one must be aware that this type of screw pockets can only achieve a small part of the strength that exists in the screw dimension for which the pocket is designed.