When using $samplerate (or $sampleratek) and rendering to a different sample rate than the project sample rate, then the rendered file gets named with the project sample rate instead of the exported samplerate.
This works as it should in 6.18 but not in 6.19 and above.