This version should work better:
@nodeselect
@dirsonly
@nofilenamequoting
(for %%i in ("{filepath}*.mp3") do @echo file '%%i') > "{filepath|noterm}.txt"
ffmpeg.exe -f concat -safe 0 -i "{filepath|noterm}.txt" -c copy "{filepath|noterm}.mp3"
pause