In the paper, we develop a bosonic quantum error correction code based on squeezed Fock states. We compare our proposed code with one based on squeezed Schrodinger's cat states using the Knill-Laflamme cost function and the Petz map fidelity. We demonstrate that squeezed Fock states are competitive in protecting information in a channel with particle loss and dephasing.