AQL allows string RegEx pattern in an archetype predicate. RegEx pattern needs to be enclosed by ‘{/’ RegEx ‘/}’. For your scenario, the AQL may include something like:
Or something like the one below. The expression below is for retrieving both element [at0003] instance value and the specialization of this element if the specialized archetype has specialization of element at0003 (such as at0003.1):