What seemed to have fixed the issue was prefixing every ignores with $HOME in addition to the excluding/re-including directories trick, as my restic backup command is restic backup $HOME --exclude-caches --iexclude-file excludes.txt
In the end, my excludes.txt looks something like that:
$HOME/**/bin
$HOME/.nvm
[...]
$HOME/.local/share/Steam/*
!$HOME/.local/share/Steam/steamapps
$HOME/.local/share/Steam/steamapps/*
!$HOME/.local/share/Steam/steamapps/compatdata
!$HOME/.local/share/Steam/steamapps/compatdata/*
!$HOME/.local/share/Steam/userdata
!$HOME/.local/share/Steam/userdata/*
[...]