To be fair, Sweden had a serious terrorist event in 2010. It was a total failure from the perspective of the terrorist who only managed to blow himself up, but it is not completely unreasonable to call it a "terror attack".
The most recent, actual successful terrorist attack was in 2015 with a radicalized white nationalist going on a killing spree with a sword in a school for immigrants.