Fixed #16731 -- Made pattern lookups work properly with F() expressions