Sweden became NATO’s newest member on Thursday (7 March 2024), upon depositing its instrument of accession to the North Atlantic Treaty with the Government of the United States in Washington DC. With Sweden’s accession, NATO now counts 32 countries among its members.
Plenty of NATO countries had troops in Afghanistan since 2001 onwards as part of the US-led campaign:
https://en.wikipedia.org/wiki/Participants_in_Operation_Enduring_Freedom