I haven't looked at what was said when Texas was "readmitted," but I once saw a doctoral study of various proposals to divide Texas into five states, and they went on long after 1865.
If secession were illegal then technically no state seceded. And no state may form another state within it’s own boundaries. Using this reasoning the entire state of West Virginia is illegal and Virginia would be within the law to take it back. Does that sound correct?