For now dynamic inventories are able to have them, but in 2.4 they removed it from normal inventories. It's nice to be able to use the same role names on bare metal and terraform provisioned nodes, so I would recommend getting rid of the = from group names.
See ansible/ansible#30624 (it's about dashes, but equal signs are affected also).