A way to map out bad pixels in darktable?

RawTherapee has a feature to hide bad pixels called bad pixels.

“RawTherapee can correct a list of bad pixels (pixels that are always black or white or stuck at one color) for your particular camera model. To do this, you need to write a text file with the absolute raw coordinates of these pixels: each line specifies a pixel with xy positions.”
https://rawpedia.rawtherapee.com/Dark_Frame#Bad_Pixels

Now, why would you want to do that if you already have a hot pixel filter?

Every or every second week I read about photographers getting their sensors damaged by lasers. A sensor change may cost more than the camera is worth. Thanks to the bad pixel feature in RawTherapee, and I suppose also in ART, you can still use the camera or rescue the already taken raw files Re: Pink line on all R6 images - Canon Community

I wonder if something similar can be done in darktable to take out thousands of pixels with the help of a list?

Not based on a list, but rather based on detecting them:
https://darktable-org.github.io/dtdocs/en/module-reference/processing-modules/hot-pixels/

Yes, the hot pixel filter. But that will do no good for laser damaged pixels.

A long time ago I used this tool, which creates a copy of the raw file, with bad pixels replaced based on their neighbourhood:

It’s been abandoned, though (even the website only has http, no https), so will probably not support your camera. Source code is unavailable.
It should work with dead pixels as well, if I remember correctly, since there was a list of pixel positions to fix. Auto-detection of bad pixels was probably limited to hot/stuck pixels.

Yes, I tried that in the link to Canon forum because it had worked for me before with hot pixels. No success at all with laser damaged pixels.