Yes, house them side by side so they can see each other but cannot attack each other. Usually splitting the coop with wire works. The place needs to be predator proof and OK as far as the climate. If you are north of the equator it can be pretty warm right now so don’t cook them. After they have been side by side for at least a week, try putting them together. If it doesn’t work out do it again until it does. At least they are the same age, that’s working in your favor.
How much room do they have? At seven weeks they can handle practically any temperatures so they don’t have to be in a brooder. The more room you can give them the better. I don’t know what your facilities look like, coop and run, but letting them together on neutral territory can help. If they are in a brooder, put them together in the coop or, even better, coop and run. The main thing though is give them as much room as you can.
What you are describing isn’t that unusual. Chickens are social animals and want to be with other chickens, so your lone chick wants to be with the others. But they can also be bullies until they work things out. Usually if they have room the one being pecked runs away so it gets settled, they know who the boss is after a few episodes. But if the weaker cannot run away it normally just scrunches down and tries to protect its head. The attacker does not realize it has won because the weaker did not run away so it keeps attacking, usually trying for the head where it can do the most damage. When you are integrating room to run is very important.