To make it more complicated, the STM32Duino "Official" core and the Roger's core use different scripts. So, it is possible that a EEPROM library for Roger's core will not work as expected with the Official core.
Each core will have libraries that should be used with only that core. Of course, anything can be hacked to persuade it to work, but you are going to have to go through the effort yourself of find someone online that has already done this work.
Example:
https://github.com/stm32duino/Arduino_C ... ies/EEPROM
IMHO, the very best way to deal with this EEPROM needs is to use a real EEPROM chip. These chips are often found on precision clock modules. Like for example: (not a vendor recommendation)
Of course, if you do not need the clock, just buy the external EEPROM. If you are going to cycle the data often, consider FRAM. I know at least one member of Roger's forum that successfully made FRAM work: