The reverse water-gas shift reaction (rWGS) is of particular interest as it is the first step to producing high-added-value products from carbon dioxide (CO2) and renewable hydrogen (H2), such as synthetic fuels or other chemical building blocks (e.g. methanol) through a modified Fischer-Tropsch process. However, side reactions and material deactivation issues, depending on the conditions used, still make it challenging. Efforts have been put into developing and improving scalable catalysts that can deliver high selectivity while at the same time being able to avoid deactivation through high temperature sintering and/or carbon deposition. Here we design a set of perovskite ferrites specifically tailored to the hydrogenation of CO2 via the reverse water-gas shift reaction. We tailor the oxygen vacancies, proven to play a major role in the process, by partially substituting the primary A-site element (Barium, Ba) with Praseodymium (Pr) and Samarium (Sm), and also dope the B-site with a small amount of Nickel (Ni). We also take advantage of the exsolution process and manage to produce highly selective Fe-Ni alloys that suppress the formation of any by-products, leading to up to 100% CO selectivity.