There is no law against driving in flip flops or even barefoot but you must make sure you can operate the controls safely. There are no specific definitions but wearing “inappropriate footwear” and putting passengers and other motorists in danger is illegal.