Asserting a dom element if it has a specific text

I’m starting out in Cypress, I’m trying to select an element with this text:

Username is missing

My code is:

cy.get('[data-id="error"]').should('have.text', 'is missing')

Is there a way that I can just use a specific part of a string (in this case, ‘is missing’) and still be able to use the .should() assertion? I hope to pass the assertion using specific part of a string only.