I haven't tried this on an F7 with newer CubeMX, but in CubeMX 6.3, configUSE_TASK_NOTIFICATIONS is defined to 1 by default in FreeRTOS.h. If you disable task notifications in CubeMX, it then adds
#define configUSE_TASK_NOTIFICATIONS 0
in FreeRTOSConfig.h.
Check your Middlewares\ThirdParty\FreeRTOS\Source\include\FreeRTOS.h and see if it has the default value there.