Dataview strings of contains and !contains not working

Many things to say… But I choose only two:
1 - If you use the title as a date in format “YYYY-MM-DD”, yaml fields as dayofweek:, week:, month:… are absolutely not necessary. You can get that values from the date in title. If you read the plugin docs you see the particularity of the implicit field file.day: Data Annotation - Dataview. This means you can “extract” a valid date format from the title and play with that, extracting the year, the month, the week-of-the-year, the week day, etc…
2 - You don’t show us your yaml syntax/format. Because that I don’t know if you write week: 38 or week: "38" (one is a number, other is a string). In the query, if you write contains(week, 38) you’re looking for a number; if contains(week, "38") you’re looking for a string.