Another option is to apply flex styling at the table row, and add the col-classes to the table header / table data elements:
| 3 columns wide header |
5 columns wide header |
4 columns wide header |
| 3 columns wide content
| 5 columns wide content
| 4 columns wide content
|