I believe the dot . is a special character in regex that matches any single character. To match a literal dot, I believe you might need to escape it using a backslash \. So, \. matches a literal “.”.
Does this work?
Match: /kostal-piko-ba\.0\.Power\.AC(\d)Voltage/
Replace: L$1
Dont think your regex needs to be so granular. Try above.
I tested this in my lab by extracting a digit from an IP address and then added your naming scheme using a replace and then doing a second replace to work with your requirement (above).
Not stating the obvious though, as your screenshot doesnt show, but confirm the transform is enabled. (number of times I forgot to re-enable in testing something). The other thing is if you have leading/trailing spaces that are not obvious.
Running Grafana 11.4