String Pattern Problems

I’m making a script that replaces string patterns with another string. I’ve got most things working but I need string.match to match just a dot (.) but not a dot with a percentage symbol in front of it(%.). I’ve tried many things but none of them have worked.

ChatGPT is a pro with those:

"(.-)([^%%])%."