code: @SuppressWarnings("squid:S2259")
      public void selectedOption(String expectedPattern) {
          String selectedOption = checkSelectedOption(expectedPattern, 0, 0);
          String reason = NO_ELEMENT_FOUND;
          if (selectedOption == null && getElement().is().present()) {
              reason = ELEMENT_NOT_SELECT;
          }
          assertNotNull(reason, selectedOption);
          assertTrue("Selected Option Mismatch: option of '" + selectedOption + DOES_NOT_MATCH_PATTERN + expectedPattern + "'",
                  selectedOption.matches(expectedPattern));
      }
docs: Asserts that the element's selected option matches the regular expression pattern
  provided. If the element isn't present or a select, this will constitute a
  failure, same as a mismatch. This information will be logged and
  recorded, with a screenshot for traceability and added debugging support.
  
  @param expectedPattern the expected input text of the element