You can only do this if the JPG was exported using darktable, AND darktable embedded the processing settings. WIth 3.4, there is a ‘cogwheel’ icon next to ‘export’ button:

See “Export selected” in the darktable usermanual under the ‘metadata’ heading.
On the master branch, you have a preferences item in the ‘hamburger menu’ of the module.
2 Likes