Split string every x position

In this example the string mySourceString is split every 5 positions.

List<String> parts = Pattern.compile(".{1,5}")
    .matcher(mySourceString)
    .results()
    .map(MatchResult::group)
    .toList();