This is misleading. I believe the wording was "help"/"assist", not "defend" and I do not believe anything has been formalised?
https://www.thelocal.se/20220304/britain-promises-military-a...
"Sverige ingår i samma familj, så vi skulle hjälpa Sverige. Vi skulle göra allt vi kan, både militärt och på andra sätt” "
"Britternas, nu officiellt uttalade militära stöd till Sverige..."