Hello @DmitryIvanov76
I’ve just published a solution in a previous post that might be suitable -as approach- for your use case. From a Logical Indexing matrix of words you can create Rule Engine or Regex True/False combined extractions.
Further than this, you could give us a more detailed description of the case, or even provide some sample data describing your inputs and expected output.