This question already has an answer here:

how to extract sub-bytes r,s from bytes(signature). Is there any function to split the bytes into sub-bytes of desirable length starting from some fixed index?

marked as duplicate by eth May 15 at 11:30

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.