Try Ammonium Sulphamate. It's banned for weeds but you can use it for composting. If you happen to spill it on your favourite weeds when going to the compost bin, you just need to make more. It reverts to a safe composition within 6 weeks and kills rat's tails within a couple of days.
See this link: https://www.allotment-garden.org/garden-diary/1989/ammonium-sulphamate-weed-killer-banned/


Best Regards
Lang may yer lum reek