It really depends on the context.
Pattern as a template is "шаблон".
Pattern as an ornament is "узор" or "рисунок".
Pattern as a rule or law is "закономерность" or "закон".
Pattern as a sample or example is "образец" or "пример".
Also, in modern psychology, pattern is often symply transliterated as "паттерн".