Right. So it tells you where the actual error occurs:
../Core/Src/system_stm32f4xx.c:170:52: note: in expansion of macro 'SCB'
170 | #if (__FPU_PRESENT == 1) && (__FPU_USED == 1) SCB->CPACR |= ((3UL << 10*2)|(3UL << 11*2)); /* set CP10 and CP11 Full Access */
| ^~~
In the notation "../Core/Src/system_stm32f4xx.c:170:52"
- ../Core/Src/system_stm32f4xx.c is the full path name of the file where the error was found;
- 170 is the line number within that file;
- 52 is the character position (or "column") along that line (counting from the left).
The message then quotes that line from the source file;
Note how the " ^~~" in the following line of the message points at the error position.
The error is that the SCB->CPACR cannot simply follow the (__FPU_USED == 1) as it does in that line:

It looks like you have "lost" a line break, and the code should be:
#if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
SCB->CPACR |= ((3UL << 10*2)|(3UL << 11*2)); /* set CP10 and CP11 Full Access */
#HowToReadGccErrorMessage
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.