The file \Inkscape\share\extensions\color_custom.py has been modified to correct this behaviour. The validity checking code for rgb values was modified. New version is attached.
You dropped the eval function calls, but they are what makes this effect useful! With your code only numbers work, but with the old code I could write e.g. r = (g + b)/2. The old one works fine for me, as expected.
If I use the original code and type in the value of 72.0/255 for red then I get red = 72 as expected. Previously I had been typing in 72, which didn't work, and I also tried 72/255 which doesn't work either, but 72./255 does work.
So ignore my code change, I wasn't aware of how much Python could do with formulas, so I didn't actually try any formulas previously.
The file \Inkscape\ share\extension s\color_ custom. py has been modified to correct this behaviour. The validity checking code for rgb values was modified. New version is attached.