Dust spots in flat fields

I’m not sure it’s what you’re after, but Darktable has a spot removal module. As per all of its modules, it’s non-destructive. I think you may even be able to set a preset with it, for if the spots are consistenly located.