More specific currentpaths regex to not remove inline JS {}