Since there is a few derivations here that might prove confusing for some here is what the entire file would look like. Note that the “append” modifier (despite what Kodi’s wiki seems to state) is not needed as excluding it does not remove defaults.
<?xml version="1.0" encoding="utf-8"?>
<advancedsettings>
<video>
<excludefromscan>
<regexp>(?i)(\@eaDir)</regexp>
</excludefromscan>
<excludetvshowsfromscan>
<regexp>(?i)(\@eaDir)</regexp>
</excludetvshowsfromscan>
<excludefromlisting>
<regexp>(?i)(\@eaDir)</regexp>
</excludefromlisting>
</video>
<audio>
<excludefromscan>
<regexp>(?i)(\@eaDir)</regexp>
</excludefromscan>
<excludefromlisting>
<regexp>(?i)(\@eaDir)</regexp>
</excludefromlisting>
</audio>
</advancedsettings>