adding or remove multiple classes with attributes.addClass
From the documentation for addClass and removeClass:


  attributes.removeClass()
  
  Removes a class from an Attribute object. Used similarly to addClass.
  Let's say you get the classes variable from somewhere else like a
  preprocess function.
  
  {% set classes = [ 'red', 'green', 'blue' ] %}
  
  &lt;div{{ attributes.addClass(classes).removeClass('green')
  }}&gt;&lt;/div&gt; outputs &lt;div class="red blue"&gt;&lt;/div&gt;.


So either you need to use an array to remove multiple classes or make multiple calls the removeClass and a single class.