you will find all the more heads that exist, but all certainly are a variation or blend of these pursuing basic shapes:
The hex travel allows the usage of sockets and spanners for tightening and loosening the screw (or https://types.blog/types-of-screw-heads/