I think RLS can have several triggers, as well as several things that help. Sometimes it changes and what worked often does not neccessarily work each time. It may work again, but in the meantime, you need something else. Certainly avoiding foods or substances that bother and trigger the RLS, is a good way to minimize the affect. But I think that other things - stress, overworking muscles, being ill, etc, can also make it worse.
I experienced this when having covid a few months ago. I had a few nights where the RLS was worse than I could just about imagine. I looked up if covid could affect RLS, and I found that, yes, it can. It does this by affecting the central nervous system, as well as the peripheral nervous system.
I got thru it, and my covid was not too bad. Only about 10 days until I was negative when testing, 2x. However, my RLS and the nerves involved seem to be still a bit too sensitive. Some of the things I have used quite successfully before were only somewhat helpful, or helpful for only a few hours. Gaba, which usually works very well for me, I had to take several times, starting in the evening and then 2 or 3 times thru the night. Taurine, magnesium, magnesium oil, progesterone cream , vitamin C, etc- all helped but only temporarily. Before I was sleeping quite well and only needing to take things before bed, and once during the night.
Well, I thought of something else, and looked it up. That is St. John's Wort. I had used it several years ago for nerve pain and inflammation in my lower back after falling on ice. Cortizone had not helped. I looked up other things drs might prescribe, and it was those ubigquitous anti-depressants that seem to get used for so many things. So, knowing that St.John's Wort is a mild antidepressant, with a sense of humor, I looked it up in relation to nerve pain and inflammation, and, yes, I found that it was used for that. So, I bought some, took it and was AMAZED at how much it helped the quite bad nerve pain in my lower back. I took it for about 10 days, until then I did not need it any more as the pain and inflammation was now gone.
So, fast forward to the present, and tho I have taken SJW during the day for a bit of SAD, during these bleak winter days, I thought "Let's take it at night and see what happens, since it was so affective, for me, with that nasty nerve pain a few years ago." So, I did, and was again AMAZED at how it just calmed down the RLS. I only woke once that night, took another dose, and slept till morning. Only a very small nerve acted up in one part of one leg. Not like it had been just before, with both legs involved, one after the other, with RLS in any part - thigh or calf, back or front, ankle, knee, even an arm or two.
I have, obviously, been continuing with the SJW. I have read that it has been used and tested on RLS patients, with mixed but impressive results. You can look it up. As with anything, it may not work for everyone, I would be surprised if it did. After all, it is the same with medicines. But, it has worked for me, so I wanted to pass on my experience, as it might help someone else. The only way you can find out is by trying it.