isImageFilePath function
Check if a given text represents an image file path.
Implementation
bool isImageFilePath(String text) {
final cleaned = _removeOuterQuotes(text.trim());
final unescaped = _stripBackslashEscapes(cleaned);
return imageExtensionRegex.hasMatch(unescaped);
}