the NIC has to support it as well as the optic, and the switch side as well, as FEC has to be pair-negotiated.
what kind of hardware is involved? FEC debugging helps to know the following:
switch os: arista, cisco, juniper, etc
optic: DAC, AOC, SFP/SFP+/SFP28/etc
nic driver: ig, ix, ixl, etc
nic mode: i350, x550, x710, etc
nic firmware version: intel-nvmupdate util