My guess is that sway checks sets the opacity when the window open, so when the first rule matches (app_id=.*) it skips all others, so maybe try putting the other 2 rules above the first one?
Sorry if my comment is incomprehensible, I’ve just woken up.