From Jürgen: the bug was fixed in the recent refstyle release: https://ctan.org/ctan-ann/id/mailman.6197.1706904970.3764.ctan-ann@ctan.org