Pattern for image placeholders with a named id capture group.
Used to extract numeric IDs from placeholder tokens so the tracker can prune stale entries and compute the next available ID.
IMAGE_PLACEHOLDER_PATTERN = re.compile('\\[image (?P<id>\\d+)\\]')