I am living in Belgium and want to exclude my 1099-NEC income from my taxable income due to the totalization agreement excluding SS payments. Where should I list this?

Should it be listed in the foreign earned income exclusion or in the self-employment 1099-NEC? Also, I don't see anything regarding the totalization agreement in either place, so I want to make sure this works. Thank you in advance.