Hi Carlos candido,
Thank you for your more information.
I already help you create a K70 KDS CAN_LDD project, you can refer to my project, the CAN_LDD configuration is like following:

Because you want to receive the standard ID:0x7E0,0x7E1,0x7E2
the standard ID is 11bit, it is:
0x7e0: 11111100000
0x7e1: 11111100001
0x7e2: 11111100010
Then, you can use the acceptance mask to care all the higher 9 bit ID, and don't care the lower 2bit.
so you can configure the acceptance mask for buff(register CAN1_RXMGMASK) = 0x1ff3ffff, you can combine the Rx FIFO structure in RM to understand it:

Actually, if you don't care the lower 2 bit of the standard ID, you can receive just 0x7E0,0x7E1,0x7E2, 0x7e3, then all other standard ID won't be received.
I already test my project on my TWR-K70F120M, the test result is like following:

You will find 0x7E0,0x7E1,0x7E2 can be received by the K70, but the 0X123 will be reject.
More details, please refer to my attached project.
Wish it helps you!
If you still have question, please let me know!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------